EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Dropdown Help (https://www.eq2interface.com/forums/showthread.php?t=7389)

Nitefang 12-13-2006 09:58 AM

Dropdown Help
 
hello all - started a new project and I'm having a bit of trouble getting it to work - hoping one of you coding experts can help me make sense of things.

I read an excellent tutorial on dropdowns and tried to use the Fetish Market window as a guide, but I'm needing it simplified a bit.

I've done the following using the UIBuilder

I created a simple dropdown with 3 items - each one intended to change the verticle size of the parent window by different amounts.

1. added the 3 menu items to the list with the names Data1, Data2, Data3 - then inserted a "command" property for each of the 3 data items that changes the size of the parent with a simple script - easy enough...

2. Created a dummy button named "RunCommands" but I'm unclear what to do next.

a little hand holding thru the next step or two is greatly appreciated !

mother9987 12-13-2006 10:41 AM

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.

Nitefang 12-13-2006 10:49 AM

Thank You
 
thanks for the fast reply - makes much more sense to me now

oh the trouble I can get into when the servers are down lol....


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

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI