Page 1 of 1
ImageGadget & Mouse Events
Posted: Mon Apr 12, 2010 1:13 pm
by Foz
Is there a built in method for detecting the Mouse Down, Mouse Up and Mouse Move events on gadgets - specifically the ImageGadget.
I realise that there would be OS specific methods via the OS api's, but I'm wondering if this is possible cross platform with the PB command set?
Re: ImageGadget & Mouse Events
Posted: Mon Apr 12, 2010 3:11 pm
by Kaeru Gaman
did you try EventType()?
I thought it should work?
Re: ImageGadget & Mouse Events
Posted: Mon Apr 12, 2010 3:26 pm
by crackhead
Documentation only mentions these constants in the context of EventType():
#PB_EventType_LeftClick
#PB_EventType_RightClick
#PB_EventType_LeftDoubleClick
#PB_EventType_RightDoubleClick
#PB_EventType_Focus
#PB_EventType_LostFocus
#PB_EventType_Change
#PB_EventType_DragStart
and only these gadgets support those:
- ExplorerListGadget()
- ExplorerTreeGadget()
- ImageGadget()
- ListViewGadget()
- ListIconGadget()
- MDIGadget()
- SpinGadget()
- StringGadget()
- WebGadget()