Hallo,
ich brauche mal wieder euren Rat.
Wie macht man das perfekt?
- Ich habe ein Hauptprogramm (einfaches Beispiel)
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 440, 192, 124)
$Button1 = GUICtrlCreateButton("Adresse", 48, 40, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
EndSwitch
WEnd
- Dann habe ich in Koda z.B. ein Fenster
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 562, 77, 209, 250)
$Input1 = GUICtrlCreateInput("Input1", 400, 48, 121, 21)
$Label1 = GUICtrlCreateLabel("Name", 360, 48, 32, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Meine Frage:
Bindet man in dem Hauptprogramm mit include die einzelnen Forms z.B.
Form2.au3
Form3.au3
Form4.au3 (die mit Koda erstellt wurden) ein,
falls ja, wie greift man dann darauf zu,
oder muß man die einzelnen KODA-Code-Teile in der Hauptform einfügen, also nicht mit include.
Was empfehlt ihr bei mehreren Formularen?
Viele Grüße
Ilse ![]()