Hallo @all,
zuerst einmal ein schönes, gutes und vor allem gesundes Neues Jahr.
Und jetzt zu meinem Problem, wie die Überschrift schon sagt scheitere ich am Vorbelegen eines Datums:
C
#include <GUIConstantsEx.au3>
#include <DateTimeConstants.au3>
$hMain = GUICreate("My GUI get date", 200, 200, 800, 200)
$date = GUICtrlCreateDate('31/12' & @YEAR, 5, 5, 140, 25, $DTS_UPDOWN)
GUICtrlSetFont(-1, 12)
$DTM_SETFORMAT_ = 0x1032
$style = "dd/MM/yyyy"
GUICtrlSendMsg($date, $DTM_SETFORMAT_, 0, $style)
GUISetState()
GUICtrlSetData($date, '31/12' & @YEAR)
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
MsgBox(0, "Datum", GUICtrlRead($date))
Alles anzeigen
die Vorlage für obiges Script ist afaik von @Oskar. Ich bin am rätseln warum immer das aktuelle Tagesdatum angezeigt wird. Spätere Änderungen in der GUI sind aber möglich.
mfg /auto-)Bert