|
I am trying to set up a combo box to act as a navigational guide for my application. The drop down menu might contain a list like the following: Quit
How do I set the event editor so that
each line will take the user to a
I have already tried the following
the "retrieve data from an object"
Christopher Benjamin
I'm not sure how detailed I need to be so forgive me if I drag this out too much. But I figure it is better to be too detailed than not detailed enough. First of all I created a new application
and added a Combo Box to the available Frame.
Frame Editor: Under Type of Combo Box I selected
Dropdown List. This will stop users from being able to modifying the displayed
text.
Frame 1
Next I added two text objects. One set to display, "Current frame is X." and the other to show, "Current selection is X." Finally I added a Push Button Control
and set it to say, "Go!"
Now to the Event Editor: Condition 1: Start of Frame
Condition 2: Combo Box Selection Changed?
Condition 3: Button Clicked
Condition 4: Button Clicked
Well I know that difficult to follow but I can't think of anything I can do that will not make it worse. The first two conditions are pretty much straight forward except maybe for the use of the str$ function. This functions converts numbers into text. It's a real handy function. In the third and fourth functions I used the Compare Two General Values to see if the user wanted to exit which means the current Combo Box would be equal to three and to see if the user was trying to go to the current frame this was done by using the frame function. The frame function returns the value of the current frame as a number. Everything else should be old hat. Now go to the Storyboard Editor and copy this frame. Now paste it twice. You should now have three identical frames. If you want to add the Combo Box Menu System to an application you already have created you could just copy and paste all of the code and objects you'll be using. All that's left now is to run the application. I've included the source code for you
to download which should help with your understanding.
This page and all of its contents are Copyright 1997-98 by Christopher Jay Craft. |