| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue May 03, 2005 9:55 pm Post subject: radio button question |
|
|
hello
how do i make my radio button NOT go to the next line of code intill the user clicks on other button...like if i had a button called start...I hope you follow what i mean..
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Tue May 03, 2005 10:06 pm Post subject: |
|
|
Hi Tim,
I don't believe it does, unless you have a click style on it.
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue May 03, 2005 10:25 pm Post subject: |
|
|
what you mean by click style?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Tue May 03, 2005 10:48 pm Post subject: |
|
|
Hi Tim,
This is with click style:
| Code: | Title radiotest
DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG ADD,BUTTON,ok,109,107,,,ok
DIALOG ADD,RADIO,RADIO1,22,60,80,72,RADIO1,Value 1|Value 2|Value 3,Value 1,,CLICK
DIALOG SHOW
:Evloop
wait event
goto @event()
:okBUTTON
info Replace this line with code to process the okBUTTON event
goto evloop
:RADIO1CLICK
info Replace this line with code to process the RADIO1CLICK event
goto evloop
:Close
info Replace this line with code to be executed before the dialog closes
exit
|
This is without:
| Code: | Title radiotest
DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG ADD,BUTTON,ok,109,107,,,ok
DIALOG ADD,RADIO,RADIO1,22,60,80,72,RADIO1,Value 1|Value 2|Value 3,Value 1
DIALOG SHOW
:Evloop
wait event
goto @event()
:okBUTTON
info Replace this line with code to process the okBUTTON event
goto evloop
:Close
info Replace this line with code to be executed before the dialog closes
exit
|
Look specificly at the DIALOG ADD,RADIO line...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue May 03, 2005 11:03 pm Post subject: |
|
|
that i see but how will that stop the radio code from going to the next line?
what i mean is this:
| Code: |
:RADIO1CLICK
info radio button been clicked
rem do something
rem Won't go pass this line intill the user clicks on ok button
rem code to do something after user clicks on the ok button
goto evloop
|
i hope this explain what i'am trying to say
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Wed May 04, 2005 4:56 am Post subject: |
|
|
Hi Tim,
Is this what you're looking for?
| Code: | :RADIO1CLICK
info radio button been clicked
rem do something
%g =
while @null(%g)
wait event
%g = @event()
if @equal(%g,okBUTTON)
info okbutton clicked
rem Won't go pass this line until the user clicks on ok button
rem code to do something after user clicks on the ok button
else
%g =
info some other event generated
end
wend
rem do some more
goto evloop
|
Let me know...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Wed May 04, 2005 6:16 am Post subject: |
|
|
ahhh trap the event...yes that should work
thanks _________________ Have a nice day  |
|
| 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 You can attach files in this forum You can download files in this forum
|
|