View Single Post
  #7  
Unread 06-15-2007, 01:28 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Ok here's the list of problem in detail...

1) The tracking list is a table control which use a datasource for the list info. As such, there are no event handlers attached to individual rows.

2) Tables do not have an OnSelect event handler to trigger other events, so its difficult to trigger script when the user changes from say item 1 to item 2.

3) Tables don't have a SelectedItemIndex property that can be used to reference the data of a selected item. However, we do have a SelectedRow number that tells us the number of the selected item.

4) The list data includes color tags embedded with the text. We have no way of seperating the player name from the color tag and attempting a /who with the color tag included confuses /who and yeilds no results.

Work Arounds

As I originally suggested, we can get around problems 1-3 by adding a more usefull control attached to the same datasource. Dropdown menu's are good for this since they do have an OnSelect event handler and a SelectedItemIndex property for referencing the data.

There are several methods we can use to sync the menu's selcted item with the table's selected item. The simplest method is a button the user clicks that sets the menu's selectedItemIndex = the tables SelectedRow. Once that's done, we can easily reference the data with menu.SelectedItemIndex.Value. We can paste that info wherever and add other text before or after it with concat.

The only remaining hurdle is getting rid of the color data. Currently there is no way of stripping those tags short of dumping the data to a text box and keyboarding Home Del.
Reply With Quote