AutoHotkey Community

It is currently May 27th, 2012, 6:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: RadioGroup's
PostPosted: February 9th, 2012, 10:58 pm 
Offline

Joined: November 9th, 2011, 7:45 am
Posts: 127
Location: Altrincham
Guys

How do i group the first 4 radio buttons and the second 4 radiobuttons?

Code:
Gui, Add, Edit, x16 y357 w40 h20 R1 vTime1, %Time1%
Gui, Add, Radio, x16 y397 w40 h20 vCH1PRO2, #2
Gui, Add, Radio, x16 y417 w40 h20 vCH1PRO3, #3
Gui, Add, Radio, x16 y437 w40 h20 vCH1PRO4, #4
Gui, Add, Edit, x66 y357 w40 h20 R1 vTime2, %Time2%
Gui, Add, Radio, x66 y377 w40 h20 vCH2PRO1, #1
Gui, Add, Radio, x66 y397 w40 h20 vCH2PRO2, #2
Gui, Add, Radio, x66 y417 w40 h20 vCH2PRO3, #3
Gui, Add, Radio, x66 y437 w40 h20 vCH2PRO4, #4


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 11:04 pm 
Offline

Joined: August 7th, 2011, 1:23 pm
Posts: 754
Manual on RadioButton wrote:
... A radio group is created automatically around all consecutively added radio buttons. To start a new group, specify the word Group in the Options of the first button of the new group -- or simply add a non-radio control in between, since that automatically starts a new group...

_________________
Win7 - Firefox 10.0.2 - AHK_L 1.1.07.00
Please bear with me and my English which is so bad at times that even I don't understand myself


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 11:06 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5482
Location: the tunnel(?=light)
Well, 1) you don't have 4 radio buttons in each group, and 2) per Odlanir's note from the manual, your radio buttons should already be in two separate groups.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 11:29 pm 
Offline

Joined: November 9th, 2011, 7:45 am
Posts: 127
Location: Altrincham
ah ok, thanks guys


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: migz99, sjc1000 and 71 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group