| View previous topic :: View next topic |
| Author |
Message |
Xander
Joined: 23 Sep 2007 Posts: 142
|
Posted: Mon Sep 24, 2007 4:29 am Post subject: Transparent background for checkboxes |
|
|
The following:
Gui, Add, CheckBox, BackgroundTrans, Description...
doesn't work, the background behind "Description..." will not be transparent. Is there another way? |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Mon Sep 24, 2007 8:15 am Post subject: |
|
|
| WinSet ? |
|
| Back to top |
|
 |
Justatoken
Joined: 25 Dec 2006 Posts: 20
|
Posted: Mon Sep 24, 2007 9:18 am Post subject: |
|
|
| I have the same problem. I just make the checkbox same size as the actual box then put a text control beside it for the description. Works for me. |
|
| Back to top |
|
 |
Xander
Joined: 23 Sep 2007 Posts: 142
|
Posted: Tue Sep 25, 2007 3:54 am Post subject: |
|
|
I suppose trimming the checkbox to its "box" size will have to do, but then clicking on the description no longer toggles the box...
Are there any plans to fix the transparency problem for checkboxes? (I image the same would happen with radio buttons though i haven't tried it..)
Anyway, this is the function I created from Justatoken's suggestion:
| Code: |
TrimCheckbox(checkbox) {
GuiControlGet, r, Pos, %checkbox%
GuiControl, Move, %checkbox%, w%rH%
}
|
Simple two liner. |
|
| Back to top |
|
 |
Icarus
Joined: 24 Nov 2005 Posts: 440
|
Posted: Fri May 09, 2008 1:49 pm Post subject: |
|
|
I have the same problem.
Not having the description toggle the checkbox is not an option for me.
Is this in the to fix list? |
|
| Back to top |
|
 |
Daz Guest
|
Posted: Thu Jul 24, 2008 4:36 am Post subject: |
|
|
radio control facing same issue here, but i required "Radio" control instead of "CheckBox" control.
As u knw, end user impression will be:
"Radio" is group of options to b choose only one.
"CheckBox" is individual option that optional.
anyone have solution? |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 903 Location: The Interwebs
|
Posted: Thu Jul 24, 2008 5:12 am Post subject: |
|
|
Well, you can continue using the workaround posted, and then add a label to the text component that toggles the checkbox?
Example:
| Code: |
Gui, Add, Checkbox, vCheckbox w10 h10 ;or whatever to have only the box show
Gui, Add, Text, gToggle, CheckBox Description
Gui, Show
Return
Toggle:
GuiControlGet, State, , CheckBox
GuiControl, CheckBox, , % !State |
|
|
| Back to top |
|
 |
Daz Guest
|
Posted: Thu Jul 24, 2008 7:53 am Post subject: |
|
|
thks~
yup that at least work for checkbox but how about rounded shape of radio control? |
|
| Back to top |
|
 |
|