Sign in to follow this  
Followers 0
gizbo

Checkbox transparent not work?

6 posts in this topic

#1 ·  Posted (edited)

: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



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

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

Share this post


Link to post
Share on other sites

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)

[center]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.[/center]

Share this post


Link to post
Share on other sites

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

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

[center]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.[/center]

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  
Followers 0