spudw2k Posted April 22, 2008 Share Posted April 22, 2008 Is there a way to make a radiobuttons not affect each other? I want a form that has multiple radio buttons that do not alter each other's selection. So radiobuttons that act like checkboxes, that make sense? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
covaks Posted April 22, 2008 Share Posted April 22, 2008 Maybe something like this: expandcollapse popup#include <GuiConstants.au3> $hWnd = GuiCreate("") Dim $radio[6] $group_1 = GUICtrlCreateGroup ("Group 1", 30, 90, 165, 160) GUIStartGroup() $radio[0] = GUICtrlCreateRadio ("Radio &0", 50, 120, 70, 20) GUIStartGroup() $radio[1] = GUICtrlCreateRadio ("Radio &1", 50, 150, 60, 20) GUIStartGroup() $radio[2] = GUICtrlCreateRadio ("Radio &2", 50, 180, 60, 20) GUIStartGroup() $radio[3] = GUICtrlCreateRadio ("Radio &A", 120, 120, 70, 20) GUIStartGroup() $radio[4] = GUICtrlCreateRadio ("Radio &B", 120, 150, 60, 20) GUIStartGroup() $radio[5] = GUICtrlCreateRadio ("Radio &C", 120, 180, 60, 20) GUIStartGroup() GuiSetState() While 1 $msg = GuiGetMsg() Switch $msg Case -3 ExitLoop Case $radio[0], $radio[1], $radio[2], $radio[3], $radio[4], $radio[5] For $x = 0 to 5 If $msg = $radio[$x] Then Else GUICtrlSetState($radio[$x],$GUI_UNCHECKED) EndIf Next EndSwitch WEnd Link to comment Share on other sites More sharing options...
spudw2k Posted April 23, 2008 Author Share Posted April 23, 2008 No, same effect. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
covaks Posted April 24, 2008 Share Posted April 24, 2008 Oh geez. Sorry, total brainfart there. That does exactly what the default behaviour does. lol. Try this: expandcollapse popup#include <GuiConstants.au3> $hWnd = GuiCreate("") Dim $radio[6] Dim $bState[6] For $x = 0 to 5 $bState[$x] = False Next $group_1 = GUICtrlCreateGroup ("Group 1", 30, 90, 165, 160) GUIStartGroup() $radio[0] = GUICtrlCreateRadio ("Radio &0", 50, 120, 70, 20) GUIStartGroup() $radio[1] = GUICtrlCreateRadio ("Radio &1", 50, 150, 60, 20) GUIStartGroup() $radio[2] = GUICtrlCreateRadio ("Radio &2", 50, 180, 60, 20) GUIStartGroup() $radio[3] = GUICtrlCreateRadio ("Radio &A", 120, 120, 70, 20) GUIStartGroup() $radio[4] = GUICtrlCreateRadio ("Radio &B", 120, 150, 60, 20) GUIStartGroup() $radio[5] = GUICtrlCreateRadio ("Radio &C", 120, 180, 60, 20) GUIStartGroup() GuiSetState() While 1 $msg = GuiGetMsg() Switch $msg Case -3 ExitLoop Case $radio[0], $radio[1], $radio[2], $radio[3], $radio[4], $radio[5] For $x = 0 to 5 If $msg = $radio[$x] Then $bState[$x] = Not $bState[$x] If $bState[$x] = False Then GUICtrlSetState($radio[$x],$GUI_UNCHECKED) EndIf EndIf Next EndSwitch WEnd Link to comment Share on other sites More sharing options...
spudw2k Posted April 25, 2008 Author Share Posted April 25, 2008 Sho nuff. That works. Now to convert my radio buttons into an array. Thanks Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now