Hallo.
Ich habe folgende GUI erstellt:
Spoiler anzeigen
#include <GUIConstants.au3>
$Gui12 = GUICreate("Gui12", 251, 184, 463, 539)
$Label1 = GUICtrlCreateLabel("Fødselsdag", 72, 8, 105, 26)
GUICtrlSetFont(-1, 14, 400, 0, "Arial")
GUICtrlSetColor(-1, 0x0000FF)
$Input1 = GUICtrlCreateInput("Input1", 8, 40, 65, 21)
$Input2 = GUICtrlCreateInput("Input2", 88, 40, 65, 21)
$Input3 = GUICtrlCreateInput("Input3", 160, 40, 81, 21)
$Label2 = GUICtrlCreateLabel("Dag", 24, 64, 35, 23)
GUICtrlSetFont(-1, 12, 800, 0, "Arial")
$Label3 = GUICtrlCreateLabel("Måned", 96, 64, 55, 23)
GUICtrlSetFont(-1, 12, 800, 0, "Arial")
$Label4 = GUICtrlCreateLabel("År", 184, 64, 29, 23)
GUICtrlSetFont(-1, 12, 800, 0, "Arial")
$Input4 = GUICtrlCreateInput("Input4", 56, 96, 89, 21)
$Label5 = GUICtrlCreateLabel("Zodiac", 8, 96, 46, 20)
GUICtrlSetFont(-1, 10, 800, 0, "Arial")
GUICtrlSetColor(-1, 0x0000FF)
$Label6 = GUICtrlCreateLabel("Alder", 152, 96, 38, 20)
GUICtrlSetFont(-1, 10, 800, 0, "Arial")
GUICtrlSetColor(-1, 0x0000FF)
$Input5 = GUICtrlCreateInput("Input5", 192, 96, 49, 21)
$Zodiac = GUICtrlCreateButton("Zodiac / Alder register", 16, 136, 225, 33, 0)
GUICtrlSetFont(-1, 14, 800, 0, "Arial")
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Nun meine Frage zu dr hoffentlich verständlichen GUI, auch wenn diese in Dänisch ist. Ich erkläre es mal.
Erstes Feld ist der Tag, das zweite der Monat, das dritte das Jahr (4 Zahlen).
Feld vier ist für Das Sternzeichen und Feld fünf für das aktuelle Lebensalter.
Feld 4 und 5 sollen nach dem Datum aus Feld 1 - 3 "berechnet" (oder wie sagt man eigentlich dazu) werden. Bin gerade wirklich am überlegen, ob es berechnen heißt, weil ein Computer ja irgendwie immer irgendwo was "berechnet". Damals waren es "1" und "0" und das System habe ich sofort verstanden und so Berechnungen auf meine Kulitasche (Radiergummi, Füller, Bleistift, usw. kommt da rein) geschrieben. Bewirkt Wunder wenn man sich wichtige Daten in Geschichte merken muß und man diese dann auf der Kulitasche zufällig irgendwie wieder findet. Soll jetzt aber nicht zum schummeln für unsere Abi-Schüler unter uns sein, okay? Unser Geschichtlehrer war in Mathe eh die absolute Null, aber das war ja auch nicht sein Unterrichtsfach. Wir haben bei Geschichte alle irgendwie damals unser Tricks für die Prüfung drauf.
Boh, mal wieder vom Thema abgekommen. Sorry.
Ich weiß nicht wie ich es machen soll, das Feld 4 und 5 "berechnet" werden, wenn ich den Button "Zodiac / Alder register" drücke.
Mag mir da jemand mal paap Bits & Bytes Hilfe senden?
LG,
Crazy-A.