Hey,
ich fag grade mit autoit an, darum hab ich grad ein wahrscheinlich simples problem^^
also, ich mache grade eine gui, in der eine inputbox ist.
darunter sind 2 buttons: "+" und "-"
wenn man auf "+" klickt, wird die gui größer und wenn man auf "-" klickt, wird die gui kleiner.
aber ich möchte, dass wenn ich auf "+" klicke auch eine zweite inputbox dazu kommt, die unter der ersten ist.
und sie soll, wenn ich auf "-" klicke wieder weggehen.
mein bisheriger quellcode:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$anzahl_Aufgaben = 1
$GUI_Groesse = $anzahl_Aufgaben * 70 + 130
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("GUI", 452, $GUI_Groesse, 210, 148)
$Info1 = GUICtrlCreateInput("Info", 32, 80, 369, 21)
$Pfeil = GUICtrlCreateButton("=>", 32, $GUI_Groesse - 66, 73, 57, $WS_GROUP)
$Plus = GUICtrlCreateButton("+", 144, $GUI_Groesse - 66, 113, 57, $WS_GROUP)
$Minus = GUICtrlCreateButton("-", 288, $GUI_Groesse - 66, 113, 57, $WS_GROUP)
$Label = GUICtrlCreateLabel("GUI", 192, 24, 33, 25)
GUICtrlSetFont(-1, 11, 800, 0, "Comic Sans MS")
$Credits = GUICtrlCreateButton("Credits", 408, 0, 41, 17, $WS_GROUP)
$History = GUICtrlCreateButton("History", 368, 0, 41, 17, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Plus
Plus()
Case $Minus
Minus()
EndSwitch
WEnd
Func Plus()
$anzahl_Aufgaben = $anzahl_Aufgaben + 1
$GUI_Groesse = $anzahl_Aufgaben * 70 + 130
$koor = Wingetpos($Form1_1)
WinMove ("GUI","", $koor[0], $koor[1], 452, $GUI_Groesse )
EndFunc
Func Minus()
$anzahl_Aufgaben = $anzahl_Aufgaben - 1
$GUI_Groesse = $anzahl_Aufgaben * 70 + 130
$koor = Wingetpos($Form1_1)
WinMove ("GUI","", $koor[0], $koor[1], 452, $GUI_Groesse )
EndFunc
lg enrodega