Page 1 of 1

ResizeGadget and #WM_MouseMove

Posted: Wed Aug 31, 2005 10:39 am
by eriansa
Any idea why the result of ResizeGadget(#Gadget,var,-1,-1,-1) results in a #WM_MouseMove message?

Posted: Fri Sep 30, 2005 7:54 pm
by Trond
It doesn't.

Code: Select all

If OpenWindow(0,0,0,222,200,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"ButtonGadgets") And CreateGadgetList(WindowID(0))
  ButtonGadget(0, 10, 10, 200, 20, "Standard Button")
  Repeat
    ResizeGadget(0, 0, 2, 200, 20)
    Event = WaitWindowEvent()
    If Event=#PB_Event_CloseWindow
      Break
    EndIf
    If Event=#WM_MOUSEMOVE
      Debug Event
    EndIf
  ForEver
EndIf

Posted: Fri Sep 30, 2005 8:04 pm
by Polo
Haven't checked, but he said
ResizeGadget(#Gadget,var,-1,-1,-1) Which is different to the example you posted.

Posted: Fri Sep 30, 2005 8:30 pm
by Trond
Oh yes that's right. :oops:

BUT, it doesn't alter anything I have tested it now. :wink: