Sign in to follow this  
Followers 0
Burgs

Hiding Comboboxes?

3 posts in this topic

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



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

Share this post


Link to post
Share on other sites

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