ReaImDown Posted January 19, 2011 Posted January 19, 2011 I have an edit box and its as follows: $eula = GUICtrlCreateEdit(FileRead($file), 20, 120, 460, 140m 2048 + 64 + 128 + 0x00200000 + 0x00100000) just curious how to make it automatically do "Word Wrap" because as is... it scrolls both up and down as well as left and right... I would like to eliminate the left & right scrolling. ty in advance. [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
JohnOne Posted January 19, 2011 Posted January 19, 2011 style $ES_WANTRETURN, $WS_VSCROLL, $WS_HSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL forced styles : $ES_MULTILINE, $WS_TABSTOP only if not $ES_READONLY That is the default style. Remove "$WS_HSCROLL" AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Andreik Posted January 19, 2011 Posted January 19, 2011 Remove last value from your style: 0x00100000
ReaImDown Posted January 19, 2011 Author Posted January 19, 2011 removing the 0x00100000; that does stop the scrolling, but doesn't do word wrap. [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
Andreik Posted January 19, 2011 Posted January 19, 2011 (edited) Try this style BitOR(0x0040,0x0004,0x0800) $ES_AUTOVSCROLL+$ES_MULTILINE+$ES_READONLY $GUI = GUICreate("Test") $Eula = GUICtrlCreateEdit(FileRead("eula.txt"),100,100,200,200,BitOR(0x0040,0x0004,0x0800)) GUISetState(@SW_SHOW) Do Sleep(10) Until GUIGetMsg() = -3 Edited January 19, 2011 by Andreik
ReaImDown Posted January 19, 2011 Author Posted January 19, 2011 removing the 0x00100000; that does stop the scrolling, but doesn't do word wrap.cheers, tyvm... all I needed to add was a scrolling bar (vertical) and it works like a charm... appreciated GUICtrlCreateEdit(FileRead($File),20,120,460,140,BitOR(0x0040,0x0004,0x0800,0x00200000)) [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]
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