Jump to content

Transparent Checkboxes...


Recommended Posts

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]
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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]
Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...