Sign in to follow this  
Followers 0
silvanr

Change style

2 posts in this topic

#1 ·  Posted (edited)

How can I delete the style from a control to set a new one?

I would like to change the style by pressing a button.

GUICtrlSetStyle only add a Style, but I can't change or delete the style.

Style 1: $CBS_DROPDOWN

Style 2: Non $CBS_DROPDOWN

It's possible?

If StringInStr($asParm[$i+1][1], "|") Then
    GUICtrlSetStyle($ParmValue[$i], $CBS_DROPDOWN)
Else
    GUICtrlSetStyle($ParmValue[$i], NON $CBS_DROPDOWN) ; delete this style (like GUICtrlCreateInput)
EndIf

Info: I can't use GUICtrlCreateInput or GUICtrlCreateEdit for this script.

thx

Edited by silvanr

Sorry, which my English is so bad. I come from Switzerland ;-)

Share this post


Link to post
Share on other sites



Some styles cannot be changed dynamically, check MSDN documentation. $CBS_UPPERCASE combo style is one example.

Is $CBS_DROPDOWN also one?


Sorry, which my English is so bad. I come from Switzerland ;-)

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