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?
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?