Jump to content
Sign in to follow this  
hot202

Child popup

Recommended Posts

hot202

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>



GUICreate("My GUI") ; will create a dialog box that when displayed is centered
Opt("GUICoordMode", 2)
$Button_1 = GUICtrlCreateButton("Info", 10, 30, 100)
$Button_2 = GUICtrlCreateButton("Exit", 0, -1)
$Button_3 = GUICtrlCreateButton("READ HELP", 0, -1)
$Button_4 = GUICtrlCreateButton("FILE", 0, -1)
GUISetState(@SW_SHOW) ; will display an empty dialog box

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE Or $msg = $Button_2
            If MsgBox(4, "YOU SURE", "") = 6 Then
                ExitLoop
            Else
                MsgBox('', '', 'You pressed no')
            EndIf
        Case $msg = $Button_1
            MsgBox('', 'You should always look in the help', 'FILE')
        Case $msg = $Button_3
            Run("notepad.exe")
        Case $msg = $Button_4
            Run("CALC.exe")
            
    EndSelect
    
    
WEnd

GUIDelete()

hey guys would some 1 be able to help me im stuck. what i want to be able to do is make my info msgbox into a child GUI with more buttons on it like email and close and some other stuff. am i able to do this can some 1 please help me? thanks guys.

Share this post


Link to post
Share on other sites
dantay9

Yes, you can just make another gui in place of the msgbox. To make it a child, make the last parameter of GUICreate the handle of the parent window. I don't know what else you are looking for.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

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  

×