Jump to content

Checkbox transparent not work?


gizbo
 Share

Recommended Posts

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

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

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