Jump to content
Sign in to follow this  
ReaImDown

guictrlcreateedit help

Recommended Posts

ReaImDown

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

ty in advance.


[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites
JohnOne

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.

Share this post


Link to post
Share on other sites
Andreik

Remove last value from your style: 0x00100000


When the words fail... music speaks

Share this post


Link to post
Share on other sites
ReaImDown

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]

Share this post


Link to post
Share on other sites
Andreik

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 by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites
ReaImDown

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 :x

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]

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  

×