AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Transparent background for checkboxes

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Xander



Joined: 23 Sep 2007
Posts: 142

PostPosted: Mon Sep 24, 2007 4:29 am    Post subject: Transparent background for checkboxes Reply with quote

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
View user's profile Send private message
BoBoĻ
Guest





PostPosted: Mon Sep 24, 2007 8:15 am    Post subject: Reply with quote

WinSet ?
Back to top
Justatoken



Joined: 25 Dec 2006
Posts: 20

PostPosted: Mon Sep 24, 2007 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Xander



Joined: 23 Sep 2007
Posts: 142

PostPosted: Tue Sep 25, 2007 3:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 440

PostPosted: Fri May 09, 2008 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Daz
Guest





PostPosted: Thu Jul 24, 2008 4:36 am    Post subject: Reply with quote

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

PostPosted: Thu Jul 24, 2008 5:12 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Daz
Guest





PostPosted: Thu Jul 24, 2008 7:53 am    Post subject: Reply with quote

thks~
yup that at least work for checkbox but how about rounded shape of radio control?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group