OZONE Asylum
Forums
Multimedia/Animation
UI Listbox trouble
This page's ID:
11423
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
That sounds like it might be a bugger to track down. What have you done so far in terms of diagnostics? Only thought I have is this: you have given the listbox focus, but that my not by default select the item at index 0. So the first press of the arrow actually selects item zero, which is why it takes a second press to select item 1. Keep in mind - this is just my best guess! But you could throw in a trace when you give the listbox focus to see what is actually selected; something along the lines of trace( myList_lb .getSelectedItem()); if it returns 0 my guess is wrong. If it returns undefined or something like that, you will have to add a line of code to select index 0 immediately after you give the list box focus: myList_lb. setSelectedIndex(0); Hope that's a help Oh - and I forgot - I was going to suggest that the onChanged event handler of the textField object might be easier than the keyUp approach you are using. Something along the lines of this rough idea: [code] yourInput_txt.onChanged = function (changedField) { if (this.text == "md") { do some stuff; } } [/code] [This message has been edited by Steve (edited 05-30-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »