Sign in to follow this  
Followers 0
basel1998

little help in gui

3 posts in this topic

hi

i need help in gui

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <SliderConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Hi", 601, 100, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 500, 0, 97, 22)
$Input1 = GUICtrlCreateInput("Input1", 0, 0, 497, 21)
$Slider1 = GUICtrlCreateSlider(0, 24, 521, 33)
$Progress1 = GUICtrlCreateProgress(8, 64, 585, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        case $Button1
            msgbox(16,'Test',here from $input1)
        case $Slider1
            set $progress one
    EndSwitch
WEnd

in

        case $Button1
            msgbox(16,'Test',here from $input1)
        case $Slider1
            set $progress one

Share this post


Link to post
Share on other sites



#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <SliderConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Hi", 601, 100, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 500, 0, 97, 22)
$Input1 = GUICtrlCreateInput("Input1", 0, 0, 497, 21)
$Slider1 = GUICtrlCreateSlider(0, 24, 521, 33)
$Progress1 = GUICtrlCreateProgress(8, 64, 585, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        case $Button1
            msgbox(16,'Test',GUICtrlRead($Input1))
            GUICtrlSetData($Progress1, 50)
    EndSwitch
WEnd

please read more about gui n the help doc


Share this post


Link to post
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
Sign in to follow this  
Followers 0