forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


radio button question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Tue May 03, 2005 9:55 pm    Post subject: radio button question Reply with quote

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 Smile
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Tue May 03, 2005 10:06 pm    Post subject: Reply with quote

Hi Tim,

I don't believe it does, unless you have a click style on it.

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Tue May 03, 2005 10:25 pm    Post subject: Reply with quote

what you mean by click style?

thanks

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Tue May 03, 2005 10:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Tue May 03, 2005 11:03 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Wed May 04, 2005 4:56 am    Post subject: Reply with quote

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
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Wed May 04, 2005 6:16 am    Post subject: Reply with quote

ahhh trap the event...yes that should work

thanks

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group