Jump to content

guictrlcreateedit help


Recommended Posts

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]
Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...