ResizeGadget and #WM_MouseMove

Windows specific forum
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

ResizeGadget and #WM_MouseMove

Post by eriansa »

Any idea why the result of ResizeGadget(#Gadget,var,-1,-1,-1) results in a #WM_MouseMove message?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Haven't checked, but he said
ResizeGadget(#Gadget,var,-1,-1,-1) Which is different to the example you posted.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Oh yes that's right. :oops:

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