treeview doubleclick?

BlitzMax Forums/BlitzMax Beginners Area/treeview doubleclick?

kimgar(Posted 2007) [#1]
hi,

does anyone know a way to trigger an event from a treeview node that is already selected?

i really need to run some code from a treeview node that is selected twice - the problem is that 'EVENT_GADGETSELECT' does not trigger an event if the user pressed a link that is already selected...

anyone have any tips on this?


GfK(Posted 2007) [#2]
EVENT_GADGETACTION?


SebHoll(Posted 2007) [#3]
Yeah, the rule of thumb for listboxes and treeviews is...

Changing selection: EVENT_GADGETSELECT
Double clicking: EVENT_GADGETACTION

And for treeviews exclusively (I think)...

Right click: EVENT_GADGETMENU

Btw, you might want to post any further questions you might have with MaxGUI in the GUI Programming topic.


kimgar(Posted 2007) [#4]
aaah, greatness!

GADGETACTION - ofcourse! thanks a lot guys, the docs are not the best, at least not for a newbie - where would i be if it wasn't for this forum? thanks again, i'll check it out in the morning, hope it works as expected.

ah, GUI topic, i wasn't aware of that, sorry, will post there from now on - thanks for the pointer!