Jump to content

A little help.


Recommended Posts

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

#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

Link to comment
Share on other sites

#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)
.
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...