Jump to content
Sign in to follow this  
Achilles

Transparent Checkboxes...

Recommended Posts

Achilles

Alright, I'm making a gui that has my own background, however when I put a checkbox on it the checkbox won't blend it so it looks horrible... Any ideas?

#include <GUIConstants.au3>

GuiCreate("Testing") 
GUICtrlCreatePic(@ScriptDir & "\Reminder - Background.JPG", 0, 0, 540, 465)
GuiCtrlSetState(-1, $GUI_DISABLE)
GuiCtrlCreateCheckBox("Testing back ground color as transparent", 100, 100, 300, 50) 
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GuiSetState()

While 1 
    $msg = GuiGetMsg() 
        If $msg = $GUI_EVENT_CLOSE then exit 
Wend

And there's a picture attached of the background I'm using...


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites
SmOke_N

Someone else had this exact issue the other day, I don't think a solution was made though.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Achilles

Someone else had this exact issue the other day, I don't think a solution was made though.

Well, for what it's worth I thought of an adequate solution...

Create the checkbox with no text and the size as 13x13 and then create a label next to it... This does prohibit the user from being able to click on the checkbox text and it is also takes some time to align it nicely, but it's better then nothing...


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.