hallo
ich habe mal ein test script erstellt..
ich möchte ,wenn man auf den button drückt nen neuer content erstellt wird.. habe ich auch.. ABER wenn ich auf nen andern buttton drücke soll der alte gelöscht werden und der content von button2 dort stehen..
hier mal das script:
[autoit]#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 472, 162, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 16, 16, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Button2", 16, 56, 75, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Button3", 16, 88, 75, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Button4", 16, 128, 75, 25, $WS_GROUP)
$Group1 = GUICtrlCreateGroup("", 104, 8, 9, 153)
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
$Group2 = GUICtrlCreateGroup("Group2", 128, 8, 233, 153)
$Edit1 = GUICtrlCreateEdit("", 152, 32, 185, 89)
GUICtrlSetData(-1, "Edit1")
GUICtrlCreateGroup("", -99, -99, 1, 1)
Case $Button2
$Group2 = GUICtrlCreateGroup("Group3", 128, 8, 233, 153)
$Button5 = GUICtrlCreateButton("Button5", 144, 40, 75, 25, $WS_GROUP)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 272, 56, 97, 17)
$Combo1 = GUICtrlCreateCombo("Combo1", 176, 96, 145, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
EndSwitch
WEnd
danke