silvanr Posted April 23, 2007 Share Posted April 23, 2007 (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 April 24, 2007 by silvanr Sorry, which my English is so bad. I come from Switzerland ;-) Link to comment Share on other sites More sharing options...
silvanr Posted April 24, 2007 Author Share Posted April 24, 2007 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 ;-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now