ReaImDown Posted January 19, 2011 Share 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] Link to comment Share on other sites More sharing options...
JohnOne Posted January 19, 2011 Share 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. Link to comment Share on other sites More sharing options...
Andreik Posted January 19, 2011 Share Posted January 19, 2011 Remove last value from your style: 0x00100000 When the words fail... music speaks. Link to comment Share on other sites More sharing options...
ReaImDown Posted January 19, 2011 Author Share 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] Link to comment Share on other sites More sharing options...
Andreik Posted January 19, 2011 Share 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 When the words fail... music speaks. Link to comment Share on other sites More sharing options...
ReaImDown Posted January 19, 2011 Author Share 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] 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