Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Location
    West Monroe, LA
    Posts
    294

    Radiobutton in DialogEX

    I have a simple issue.

    I have a dialogex with radiobuttons.

    if cnt == "FTP" then
    RadioButton.SetProperties("RadioButton19", tbProperties);
    RadioButton.SetChecked("RadioButton19", true);
    end

    I have tried both of these commands and the buttons DONOT check.
    I have verified the cnt = "FTP" and it displays in a message box.

    I'm obviously doing something wrong. There isn't any issues with radiobuttons in a dialogEX is there?
    SELECT * FROM Users WHERE IQ > 0;
    o rows Returned

  2. #2
    Join Date
    Apr 2009
    Posts
    277
    yes, there is a issue with radio objects and DialogEx, but there is also a workaround

    look here: http://www.indigorose.com/forums/sho...radio+dialogex

  3. #3
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Hi,

    I make sure GroupID is empty when I work with 4 RadioButtons or more on DialogEx.

    Otherwise, one of the Radio Button would refuse to get unchecked once its checked. So I would strangely have 2 checked Radio Buttons then. Maybe its a bug or maybe its me.

    To overcome the issue I don't use GroupID. And I make a script to get checked radio and value. I don't know whether its as efficient as others. But it does what I need.
    Code:
    	--- get which radiobutton is checked. I have 4 Radio Buttons.
    	for i=1,4 do
    		bCheck = RadioButton.GetChecked("RadioButton"..i);
    		if bCheck ==true then
    			tRBprops = RadioButton.GetProperties("RadioButton"..i);
    			sRBvalue = tRBprops.Value;
    		end
    	end
    	
    	--- do things according to RB value
    	if sRBvalue =="1" then
    	    -- do something
    	elseif sRBvalue =="2" then
    	    -- do something
    	elseif sRBvalue =="3" then
                -- do something
    	elseif sRBvalue =="4" then
               -- do something
    	end
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  4. #4
    Join Date
    Oct 2003
    Location
    West Monroe, LA
    Posts
    294
    I made the ID blank and it works on all but 1. I will work on something. Thanks for the suggestions.
    SELECT * FROM Users WHERE IQ > 0;
    o rows Returned

Similar Threads

  1. I have a doubt: DialogEx action
    By autoplmst6 in forum AutoPlay Media Studio 7.5
    Replies: 4
    Last Post: 05-08-2009, 09:39 AM
  2. DialogEx (HTTP.Download Callback Function) Help
    By David REMD in forum AutoPlay Media Studio 7.5
    Replies: 4
    Last Post: 03-28-2009, 01:22 PM
  3. Get RadioButton Checked
    By Chen Lyan in forum AutoPlay Media Studio 7.5
    Replies: 1
    Last Post: 03-24-2009, 02:24 PM
  4. Bug in DialogEx and Statusdlg
    By Tomasin in forum AutoPlay Media Studio 7.5 Suggestions
    Replies: 3
    Last Post: 01-11-2009, 04:13 AM
  5. AMS 7.5 bug - HTTP.Submit on DialogEx
    By Stephen G. in forum AutoPlay Media Studio 7.5 Suggestions
    Replies: 1
    Last Post: 10-21-2008, 07:56 AM

Posting Permissions

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