Page 1 of 1

ImageGadget's border not seen

Posted: Sun Oct 12, 2008 1:50 pm
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

Posted: Sun Oct 12, 2008 2:07 pm
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.

Posted: Sun Oct 12, 2008 2:12 pm
by PB
I knew you wouldn't like this report. ;)