Sign in to follow this  
Followers 0
maqleod

adding styles to a control

4 posts in this topic

how would I go about adding more styles to a control?

say I have an edit control that was created with the default styles (-1) but I have a menu option that says "word wrap" that when selected would change that style setup to "$ES_WANTRETURN+$WS_VSCROLL+$ES_AUTOVSCROLL"

is there a way to do that?


[u]You can download my projects at:[/u] Pulsar Software

Share this post


Link to post
Share on other sites



how would I go about adding more styles to a control?

say I have an edit control that was created with the default styles (-1) but I have a menu option that says "word wrap" that when selected would change that style setup to "$ES_WANTRETURN+$WS_VSCROLL+$ES_AUTOVSCROLL"

is there a way to do that?

GuiCtrlSetStyle


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

right, thx, just found that too, guess its too late for me to be scripting if i miss something that easy


[u]You can download my projects at:[/u] Pulsar Software

Share this post


Link to post
Share on other sites

ok, well, that does change the style and all, but it doesn't produce the desired effect.

if $ES_WANTRETURN+$WS_VSCROLL+$ES_AUTOVSCROLL are added into the styles when the control is created, the result is that the edit box word wraps

but if I set the style with GuiCtrlSetStyle it does not word wrap

same the other way around, if the edit box starts with word wrap and you set the styles back to the default, it retains the word wrap attribute.

any idea why?


[u]You can download my projects at:[/u] Pulsar Software

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