Thread: Dropdown Help
View Single Post
  #2  
Unread 12-13-2006, 10:41 AM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default

Ok, I don't have a UI open in front of me this exact second, but I'll try to give you a direction...

Your dropdown has an event which I think is called "OnSelect". If it's not, it's something close to that.

Your OnSelect event will Copy the command code to the OnPress event of your button and then press the button.

"parent.RunCommands.OnPress=SelectedItem.Command
parent.RunCommands.Press=true"

Viola... just remember that the commands will be executed relative to the RunCommands element and not your dropdown or yours data source when you figure out your paths.
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
Reply With Quote