| Author |
Message |
chainer
Joined: 25 Feb 2007 Posts: 17
|
Posted: February 28, 2007 10:14 PM Post subject: pop up menus |
|
|
i wanted to thank everyone for helping me with my last problem, it completely solved it.
i am re writing the subwoofer program so that instead of each answer being displayed as you go, you do all your inputs, and then all of the answers are displayed.
im having a problem with the dia equation. what it is is that the equation that we are using calls for a different value instead of the standard 10, 12, and 15 inch sizes, and not everyone is going to know what those sizes are.
so is it possible to when you move to that prompt section, to display those three sizes, but the actual value to be used will be ones for that specific equation?
ps i plan to allow anyone that is wanting this program free access to it, so the more you help, the better it will be in actuality, just contact me and when im done ill get it to you.
Thank you so much. |
|
| Back to top |
|
 |
mark
Joined: 24 Feb 2007 Posts: 27
|
Posted: March 2, 2007 7:00 PM Post subject: |
|
|
im not sure i undersatand what your asking in this paragraph
| Quote: | | so is it possible to when you move to that prompt section, to display those three sizes, but the actual value to be used will be ones for that specific equation? |
do you mean, show those three sizes, as possible values for someone to type in, but allow someone to type in something different in case they need to?
if thats the case then you could just use (input "10,12,15, or other",myvar)
so that they see that there is 10,12, and 15, but that they can put in any number they want
if that doesnt answer it could you rephrase it please? |
|
| Back to top |
|
 |
chainer
Joined: 25 Feb 2007 Posts: 17
|
Posted: March 2, 2007 8:49 PM Post subject: |
|
|
what i mean is that the user can choose between the 10, 12, and 15 inch sizes. meaning that there will be a dialog box that pops ups and the user is prompted to choose which size. But in the equation, another value will be used.
For instance, the box pops up, and the user is prompted to select a size, so they select 15, but in the equation, the value used is 30.
does that help? |
|
| Back to top |
|
 |
mark
Joined: 24 Feb 2007 Posts: 27
|
Posted: March 2, 2007 9:15 PM Post subject: |
|
|
ok, thanks, much clearer
what you could do is use the popup box
when you use that it pops up a list that you can choose from, for example
1:10
2:12
3:15
when you choose, for example, 2:12, it will save the value as "2" for choice number two, with the "popup" instruction it will always save it as the choice #you select
so what you could do is have
:popup {"10","12","15"},x
then following that you could have something like
:If x=3 Then
:30->x
:ElseIf x=2 Then
:yournumber->x
:ElseIf x=1 Then
:yourothernumber->x
:EndIf
so with a few extra lines, when someone selects 3:15, the value saved is essentially 30
hope that helps! |
|
| Back to top |
|
 |
chainer
Joined: 25 Feb 2007 Posts: 17
|
Posted: March 2, 2007 11:21 PM Post subject: |
|
|
that helps so so so much. thank you, especially for writing the code for me.
did you happen to want a copy of it? the whole program i mean? |
|
| Back to top |
|
 |
mark
Joined: 24 Feb 2007 Posts: 27
|
Posted: March 3, 2007 10:03 PM Post subject: |
|
|
| no problem, i dont need it, thanks though |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
Saphic 1.5 // Theme created by Sopel
|
|