Jump to content

EditBox: Word wrap without horizontal scroller?


Rad
 Share

Recommended Posts

My edit box is pretty small, and I dont want the bottom scroller because the window is small to. I dont want them to be able to scroll to the side only straight down. But for some reason as you type it just keeps going like in Notepad when word wrap is off... How do I fix this?

$txt_field=GuiCtrlCreateEdit("",2,50,252,204,BitOr($ES_WANTRETURN, $WS_VSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL))

EDIT~(In case these forums enforce the double post rule)

I figured it out, instad of needing $WC_HSCROLL I needed to remove $ES_AUTOHSCROLL :P

Edited by Rad
Link to comment
Share on other sites

My edit box is pretty small, and I dont want the bottom scroller because the window is small to. I dont want them to be able to scroll to the side only straight down. But for some reason as you type it just keeps going like in Notepad when word wrap is off... How do I fix this?

$txt_field=GuiCtrlCreateEdit("",2,50,252,204,BitOr($ES_WANTRETURN, $WS_VSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL))

EDIT~(In case these forums enforce the double post rule)

I figured it out, instad of needing $WC_HSCROLL I needed to remove $ES_AUTOHSCROLL :P

Like this;

#include <GuiConstants.au3>
$gui=GuiCreate("Task Drawer",120,120, 150, 150, $WS_POPUP, $WS_EX_TOPMOST)
GUISetBkColor (0xE0FFFF)
$lbl=GuiCtrlCreateEdit("",0,0,100,100,BitOr($ES_MULTILINE, $WS_VSCROLL))
GUICtrlSetBkColor ( $lbl, 0xE0FFFF )
GUICtrlSetFont ($lbl, 10, 600, "", "Arial Bold")
GuiSetState()

While 1
   If WinActive ("Task Drawer") = "0" Then Exit
   Sleep(100)
WEnd
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...