Indigo Rose Software
  #1  
Old 10-22-2008
heelism heelism is offline
Forum Member
 
Join Date: Apr 2004
Posts: 9
Oops Setting Radio Button Checked status

Hi

I am trying to set a radio button on a custom screen so that it is checked but nothing seems to be happening.

I have the following code in the "On Preload" code section:
DlgRadioButton.SetProperties(CTRL_RADIO_BUTTON_01, {Checked = true});

Cheers,

Martin
Reply With Quote
  #2  
Old 10-22-2008
Ulrich's Avatar
Ulrich Ulrich is offline
Indigo Rose Staff Member
 
Join Date: Apr 2005
Location: Sao Paulo, Brazil
Posts: 823
The same code you posted works fine for me, the correct radiobutton was checked. You could post your project file to help find the error.

Ulrich
Reply With Quote
  #3  
Old 10-22-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by heelism View Post
Hi

I am trying to set a radio button on a custom screen so that it is checked but nothing seems to be happening.

I have the following code in the "On Preload" code section:
DlgRadioButton.SetProperties(CTRL_RADIO_BUTTON_01, {Checked = true});

Cheers,

Martin
are you sure the radio button CTRL_RADIO_BUTTON_01 and not another button?

They are not necessarily #'d from "top to bottom" they are #'d in the order that you placed them -- and if you put 3 down; and removed the 1st, there would be no #1 radio button....
__________________
Reply With Quote
  #4  
Old 10-23-2008
heelism heelism is offline
Forum Member
 
Join Date: Apr 2004
Posts: 9
Nevermind I'm a mollusc

I had quotes around the CTRL_RADIO_BUTTON_01 in my code and didn't notice :-(

All working now. Strange that an error message wasn't reported. Looks like the syntax checking needs work...
Reply With Quote
  #5  
Old 10-23-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by heelism View Post
I had quotes around the CTRL_RADIO_BUTTON_01 in my code and didn't notice :-(

All working now. Strange that an error message wasn't reported. Looks like the syntax checking needs work...
In the future, you should generally post your actual code, not retyped or made up code...

Quote:
Originally Posted by heelism View Post
I have the following code in the "On Preload" code section:
DlgRadioButton.SetProperties(CTRL_RADIO_BUTTON_01, {Checked = true});
doesn't show any quotes around it... neither of us saw any issues with it.

Glad you got it figured out.
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable CurrentUser radio button on UserProfileDlg screen cdundee MSI Factory 2.0 Discussion 2 07-18-2007 04:50 PM
Radio button value as condition for installing a file mwallace Setup Factory 7.0 Discussion 1 06-09-2006 03:08 PM
Radio button and next button StealthShadow Setup Factory 7.0 Discussion 2 10-25-2005 05:36 PM
Example: Creating an on/off button to toggle background audio Jonas DK AutoPlay Media Studio 5.0 Examples 0 07-10-2004 03:54 PM
Example: Creating Radio Button Groups Darryl AutoPlay Media Studio 5.0 Examples 0 05-13-2004 01:12 PM


All times are GMT -6. The time now is 08:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software