PDA

View Full Version : Detect changes in list control navigation


funkyfoo
2004-12-08, 02:11
hi all,

i'm wondering whether it's possible to detected when someone changes his focus in a list, without actually 'selecting' it (having to press the a button).

basically what i want to do is when someone 'browses' through a list without selecting anything is change a small logo according to the highlighted thing in the list.

things like list.getselectedposition() only seem to work when someone actually selects something. when i use something like list.controlup(display a dialog) it immediately does this (the list control gets focus when the script starts) and then immediately exits.

can this be done? or should i use buttons and some magic trick to figure out what control has the focus (how does one actually do this? :)

funkyfoo
2004-12-09, 15:37
:bump:

solexalex
2004-12-09, 19:15
the only way to do it, seems to assign a pointer and to increase/decrease the value when you push up/down
be carefull cause triggers will move in the list. so maybe should you detect the onaction for the triggers and do nothing. maybe it will work...