ImageGadget & Mouse Events

Just starting out? Need help? Post your questions and find answers here.
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

ImageGadget & Mouse Events

Post 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?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: ImageGadget & Mouse Events

Post by Kaeru Gaman »

did you try EventType()?
I thought it should work?
oh... and have a nice day.
crackhead
User
User
Posts: 12
Joined: Tue Apr 06, 2010 9:26 pm

Re: ImageGadget & Mouse Events

Post 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()
Post Reply