Jump to content

GUI Scroll problem


ioctl
 Share

Recommended Posts

Here is the code. Anyone knows why is not working ? Thanks.

#include <GUIConstants.au3>

GUICreate("My GUI",550,400,-1,-1,BitOr($ES_AUTOVSCROLL+$WS_VSCROLL,$WS_MINIMIZEBOX,$WS_MAXIMIZEBOX,$WS_GROUP,$WS_CAPTION,$WS_POPUP,$WS_SYSMENU))

GUISetHelp("notepad") ; will run notepad if F1 is typed

Opt("GUICoordMode",2)

$widthCell=70

GUICtrlCreateLabel ("Line 1 Cell 1",  10, 30, $widthCell); first cell 70 width

GUICtrlCreateLabel ("Line 2 Cell 1",  -1, 0); next line

GUICtrlCreateLabel ("Line 3 Cell 2",  0, 0); next line and next cell 

GUICtrlCreateLabel ("Line 3 Cell 3",  0, -1); next cell same line

GUICtrlCreateLabel ("Line 4 Cell 1",  -3*$widthcell, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 4 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 5 Cell 1",  -1, 0); next line Cell1

GUICtrlCreateLabel ("Line 6 Cell 1",  -1, 0); next line Cell1

GUISetState ()    ; will display an empty dialog box

; Run the GUI until the dialog is closed

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

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