Jump to content
Sign in to follow this  
Burgs

Hiding Comboboxes?

Recommended Posts

Burgs

Hello,

Can somebody explain how it is possible to 'hide' a Combox Control using the "GUICtrlSetState" command? I have tried to do so with Comboboxes created using both "_GUICtrlComboBoxEX_Create" and "_GUICtrlComboBox_Create" without success...why do these seem to act differently from other controls? Thanks in advance...

example:

Global $MainGUI = GUICreate("Example", 425, 540)
GUISetState(@SW_SHOW)
$_textsize1 = _GUICtrlComboBoxEX_Create($MainGUI, "", 75, 300, 40, 300)
_GUICtrlComboBoxEx_AddString($_textsize1, "6")
_GUICtrlComboBoxEx_AddString($_textsize1, "7")
_GUICtrlComboBoxEx_AddString($_textsize1, "7.5")
GUICtrlSetState($_textsize1, $GUI_HIDE)

Share this post


Link to post
Share on other sites
ahmet

GUISetState() affects only controls created with GUICtrlCreate... Try with WinSetState()

Share this post


Link to post
Share on other sites
Burgs

Thanks, that helped a lot...and good info to know. Much appreciated!

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.