How do I render the edit control with a vertical scroll and also make it read-only?
In the helpfile, the syntax for edit control is:
I'm guessing that both $WS_VSCROLL and $ES_READONLY should be on the style parameter though I don't know how to combine them.
Here's my script: (Please don't mind the unneccessary "includes".)
#include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <string.au3> #include <array.au3> #include <EditConstants.au3> #include <Misc.au3> $Form = GUICreate('Uhm', 500, 500, 0,0, $WS_BORDER) GUISetCursor(2) ;GUISetBkColor(0x000000) $_History = GUICtrlCreateEdit('Lorem ipsum', 8, 8, 400, 400, $WS_VSCROLL , $ES_READONLY) ; <<<<<<<< ;$_History = GUICtrlCreateEdit('Lorem ipsum', 8, 8, 400, 400, $ES_READONLY, $WS_VSCROLL) ;$_History = GUICtrlCreateEdit('Lorem ipsum', 8, 8, 400, 400, $ES_READONLY) ;$_History = GUICtrlCreateEdit('Lorem ipsum', 8, 8, 400, 400, $WS_VSCROLL) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
Thanks!
Edit: Added "[SOLVED]" to title.
Edited by Lilbert, 27 April 2012 - 05:07 AM.




