Rad Posted January 10, 2006 Share Posted January 10, 2006 (edited) 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 Edited January 10, 2006 by Rad Link to comment Share on other sites More sharing options...
John Posted January 10, 2006 Share Posted January 10, 2006 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 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 More sharing options...
John Posted January 10, 2006 Share Posted January 10, 2006 I know the code has screwy variables and such but it's a quick rip out of code meant for something entirely different. 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