Jump to content

Recommended Posts

Posted

Ok, here's what i'm trying to do... I want to creat a gui interface that will "change/resize" based on whats been checked to be displayed.. so say I have 6 check boxes displayed when the program is run, the user then selects what items he wants displayed by checking the boxes, the user then hits the OK button to display then, in turn th GUI changes size to display what he just selected (by adding buttons, edit boxes, labels, ext) to the gui. ok.. I hope that makes sense :">

Here's kinda what im looking for in the whole big picture of it... just imagine the gui being smaller when first run and growing based on whats selected

#include <GuiConstants.au3>

If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000

GuiCreate("MyGUI", 609, 527,(@DesktopWidth-609)/2, (@DesktopHeight-527)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)

$Group_1 = GuiCtrlCreateGroup("", 0, -10, 610, 80)
$Checkbox_2 = GuiCtrlCreateCheckbox("Checkbox2", 10, 10, 80, 20)
$Checkbox_3 = GuiCtrlCreateCheckbox("Checkbox3", 10, 40, 90, 20)
$Checkbox_4 = GuiCtrlCreateCheckbox("Checkbox4", 120, 10, 80, 20)
$Checkbox_5 = GuiCtrlCreateCheckbox("Checkbox5", 120, 40, 80, 20)
$Checkbox_6 = GuiCtrlCreateCheckbox("Checkbox6", 220, 10, 80, 20)
$Checkbox_7 = GuiCtrlCreateCheckbox("Checkbox7", 220, 40, 70, 20)
$Button_8 = GuiCtrlCreateButton("Button8", 480, 20, 90, 40)
$Group_9 = GuiCtrlCreateGroup("Group9", 10, 100, 580, 80)
$Group_10 = GuiCtrlCreateGroup("Group10", 10, 200, 580, 80)
$Group_11 = GuiCtrlCreateGroup("Group11", 10, 300, 580, 80)
$Group_12 = GuiCtrlCreateGroup("Group12", 10, 400, 580, 80)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;
    EndSelect
WEnd
Exit

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...