Wikipete Posted June 19, 2008 Posted June 19, 2008 Hi, I am trying to use the following script exerpt to create a scrollable, read only page on a gui for terms and conditions of use. I cannot seem to get the scroll bar to appear however. Please help! Thanks! . GuiCtrlCreateLabel("Please note that this software is given to you under the following conditions:", 20, 40, 400, 20) $file = GUICtrlCreateEdit("", 40, 70, 310, 150,BitOR($ES_MULTILINE, $ES_WANTRETURN, $ES_AUTOVSCROLL, $ES_READONLY), $WS_EX_CLIENTEDGE) GUICtrlSetState(-1, $GUI_DROPACCEPTED) Run (Brain.exe).
evilertoaster Posted June 19, 2008 Posted June 19, 2008 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <StaticConstants.au3> $spam=" desu desu " for $a=0 to 10 $spam&=$spam Next GUICreate("") GUISetState() GuiCtrlCreateLabel("Please note that this software is given to you under the following conditions:", 20, 40, 400, 20) $file = GUICtrlCreateEdit("", 40, 70, 310, 150,BitOR($ES_MULTILINE, $ES_READONLY,$WS_VSCROLL), $WS_EX_CLIENTEDGE) GUICtrlSetData(-1,$spam) GUICtrlSetState(-1, $GUI_DROPACCEPTED) while 1 WEnd the $WS_VSCROLL style is key
Wikipete Posted June 20, 2008 Author Posted June 20, 2008 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <StaticConstants.au3> $spam=" desu desu " for $a=0 to 10 $spam&=$spam Next GUICreate("") GUISetState() GuiCtrlCreateLabel("Please note that this software is given to you under the following conditions:", 20, 40, 400, 20) $file = GUICtrlCreateEdit("", 40, 70, 310, 150,BitOR($ES_MULTILINE, $ES_READONLY,$WS_VSCROLL), $WS_EX_CLIENTEDGE) GUICtrlSetData(-1,$spam) GUICtrlSetState(-1, $GUI_DROPACCEPTED) while 1 WEnd the $WS_VSCROLL style is key Thanks! Run (Brain.exe).
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