EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Interface Discussion > Pre-Beta

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9  
Unread 06-15-2007, 02:45 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

Quote:
Originally Posted by Zonx View Post
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.

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.
Have you tried this or gotten this to work somehow? I did work on this idea but there were some problems. The table of names can be sorted three different ways. It starts out sorted by distance. If you click where it says "Name" it sorts alphabetically, and if you click again it sorts in reverse alphabetical order.

The Table.SelectedRow only matches the Dropdownbox.SelectedItemIndex when you sort by distance. The dropdownbox is always sorted by distance so the numbers don't match when you sort the table the other two ways so I wasn't able to use those numbers at all.

What other methods can you use to get the name out of the table?
Reply With Quote
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:04 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI