ImageGadget's border not seen

Windows specific forum
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

ImageGadget's border not seen

Post by PB »

In this snippet, the ImageGadget's border can't be seen unless you invalidate
the window after it animates. Using v4.30 Beta 3 on XP Pro with SP3.

Code: Select all

If OpenWindow(0,200,200,350,300,"Animation",#PB_Window_Invisible|#PB_Window_SystemMenu)
  ImageGadget(0,10,10,100,100,0,#PB_Image_Border) ; Border not seen!
  AnimateWindow_(WindowID(0),150,#AW_VER_NEGATIVE|#AW_ACTIVATE)
  ;InvalidateRect_(WindowID(0),0,#True) ; Uncomment to see ImageGadget's border.
  Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Fred
Administrator
Administrator
Posts: 18360
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Well, animatewindow has a couple of problem with native window control, so we won't workaround all of them just because of this (badly thinked) function.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

I knew you wouldn't like this report. ;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply