fxg4758 Posted February 17, 2009 Posted February 17, 2009 (edited) Hi. Can someone tell if have sucess in create a button on a child WindowsForms10.window. In the first window, i can put buttons, but in the next windows what i think will be child, nothing happens. Can anybody helped me? Thanks. Edited February 20, 2009 by fxg4758
Manjish Posted February 17, 2009 Posted February 17, 2009 This is a script in which the child window has a button.. expandcollapse popup#include <GUIConstants.au3> #include<WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Parent", 276, 206, 193, 125) $Group1 = GUICtrlCreateGroup("Group1", 0, 0, 273, 201) $Label1 = GUICtrlCreateLabel("This is a parent gui..", 88, 40, 99, 17) $Button1 = GUICtrlCreateButton("Child", 64, 136, 145, 33, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 child() EndSwitch WEnd Func child() #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Child", 276, 206, 193, 125,"","",$Form1) $Group2 = GUICtrlCreateGroup("Group1", 0, 0, 273, 201) $Label2 = GUICtrlCreateLabel("This is a child gui..", 88, 40, 91, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) $Button2 = GUICtrlCreateButton("EXIT", 64, 136, 145, 33, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Button2 Exit EndSwitch WEnd [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
BrettF Posted February 17, 2009 Posted February 17, 2009 Could you please be more specific in your problem? Can you tell us:What exactly you want to achieve- Applications you are automatingAlso use as much detail as possibleWhat you current code is (please post it if possible)So we can go about helping.Thanks,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
fxg4758 Posted February 19, 2009 Author Posted February 19, 2009 (edited) Hi. I already resolved the problem. Thanks for the posts. Edited February 20, 2009 by fxg4758
GHOSTSKIKDA Posted February 26, 2009 Posted February 26, 2009 No solution [center]I LOVE ALGERIA .... ;-)[/center]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now