Jump to content
Sign in to follow this  
gizbo

Checkbox transparent not work?

Recommended Posts

gizbo

:lmao: Hello!

Code example:

$var = GUICtrlCreateCheckbox("",298,90,210,15,-1,$WS_EX_TRANSPARENT )

only not work cheboxes ideas?

P.D.: Only for my english... :">

Only = sorry :"> :"> :"> :"> :">

Edited by gizbo

Share this post


Link to post
Share on other sites
TK_Incorperate

Hmmm that is very weird, i tried to do it myself to see what the problem is, and every way i tried i failed. Maybe this function isnt available for Check Boxes.

~TK

Share this post


Link to post
Share on other sites
gizbo

Ok... thanks!! for your answer!!

Share this post


Link to post
Share on other sites
SmOke_N

Are you just trying to hide the CheckBox()??

If so, you could set the state:

$var = GUICtrlCreateCheckbox("",298,90,210,15,-1)
GUICtrlSetState($var. $GUI_HIDE)
; If statement you want becomes true, to bring it back you could do
GUICtrlSetState($var. $GUI_SHOW)

OR TRANSPARENT

$var = GUICtrlCreateCheckbox("",298,90,210,15,-1)
GUICtrlSetState($var. $WS_EX_TRANSPARENT)
; If statement you want becomes true, to bring it back you could do
GUICtrlSetState($var. $GUI_SHOW)

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
gizbo

Thanks, but...i do not want that it(he,she) disappears completely. I want that alone the text is transparent...

Sorry for my english please :lmao: (traduction->_http://traductor.ya.com

Share this post


Link to post
Share on other sites
SmOke_N

I don't think your english is bad at all, I think my interpretation of what it is that you want isn't very good :lmao: .

Assuming that you want the check box and no text, I'll show 2 examples and tell me if we are on the right path at least.

#include <guiconstants.au3>

GUICreate('', 200, 100)
$combo = GUICtrlCreateCheckbox('text', 10, 10)

GUISetState()

While 1
    $msg = GUIGetMsg()
    If $msg = -3 Then 
        GUICtrlSetData($combo, '')
        Sleep(6000)
        Exit
    EndIf
    Sleep(10)
WEnd

Or

#include <guiconstants.au3>

GUICreate('', 200, 100)
$combo = GUICtrlCreateCheckbox(' ', 10, 10)

GUISetState()

While 1
    $msg = GUIGetMsg()
    If $msg = -3 Then
        Exit
    EndIf
    Sleep(10)
WEnd

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

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  

×