Jump to content

Change style


Recommended Posts

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 ;-)

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...