Thread: ListBox
View Single Post
  #8  
Unread 03-10-2005, 01:28 PM
Kosmos's Avatar
Kosmos Kosmos is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Lucan DLere
Posts: 581
Default

Ok, again pay no attention to costmetics at this point.

What I need is help with this line.
Quote:
<Listbox BackgroundOpacity="1.000" DataSource="EmotesSource" Location="12,23" Name="EmotesList" OnSelect="Parent.Parent.Parent.Current.SelectedItem" PackLocation="top,left" PackLocationProp="0012/0001,0023/0001" PackSize="absolute,absolute" PackSizeProp="0024/0001,0037/0001" RowTemplate="ListTemplate" ScrollExtent="77,544" Shear="0" Size="77,544" Style="ListStyle"/>
Here are the files.
If I use OnSelect="cruse"
it works, but of course selecting any item makes my character curse.


I need to know how to get the SelectedItem value into the OnSelect Event.

For the ListBox, SelectedItem is supposed to be a string value.
SelectedItemIndex updates the index number when the choices are selected in the UI Build. The SelectedItem should also shouldn't it?

This is going to be really nice when I finnish, but I don't want to continue work unless I know I can get it to function properly.

I could do this with buttons, but I surely don't want to.
Attached Files
File Type: xml eq2ui_mainhud_emotes.xml (3.0 KB, 398 views)
File Type: xml eq2ui_emoteslist_template.xml (457 Bytes, 406 views)
Reply With Quote