Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    3

    Star Set RADIO buttons based on VARIABLE???

    I have set the default radio button within a project to CTRL_RADIO_BUTTON_01, but I want to know how I can set it based on a registry lookup value. This may meen that it is button 1 or button 11 as the default.

    So far I have the following:
    ON STARTUP
    NoRegistryMidi = true;
    RegMidi = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Company\\Product\\1.0", "Midi", true);
    if (RegMidi ~= "") then
    NoRegistryMidi = false;
    if (RegMidi == "name of midi 1") then
    DefaultMidi = 1;
    end
    if (RegMidi == "name of midi 2") then
    DefaultMidi = 2;
    end
    end


    If the test represented button 2 as being used last time the user run the program, then I would like to set the CTRL_RADIO_BUTTON_02 as the default on the radio buttons screen.

    Thanks
    Joshua

  2. #2
    Join Date
    Feb 2005
    Posts
    3

    Talking Stupid Me....

    The answer was quite simple...

    Radio Buttons --> ACTIONS --> ON PRELOAD
    if (DefaultMidi == 2) then
    DlgRadioButton.SetProperties(CTRL_RADIO_BUTTON_02, {Checked = true});
    end


    You will need to set the default to NONE.

    Radio Buttons --> SETTINGS --> DEFAULT SELECTION
    NONE

    Oh well, on with the show.

    Man this is definately the most powerful version yet. Go you good thing.

    Joshua
    Last edited by Joshua; 02-16-2005 at 08:05 AM.

Similar Threads

  1. Update Variable Not Set Properly
    By acedougk in forum TrueUpdate 1.0
    Replies: 2
    Last Post: 02-12-2004, 03:15 AM
  2. Programatically putting text in Radio buttons.
    By jassing in forum Setup Factory 6.0
    Replies: 5
    Last Post: 03-04-2003, 02:56 PM
  3. INFO: How to Set the Default Application Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 12:02 PM
  4. Radio buttons variables - no default set
    By sclarke in forum Setup Factory 6.0
    Replies: 1
    Last Post: 12-17-2001, 03:02 PM
  5. Replies: 1
    Last Post: 11-21-2001, 01:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts