Autor Beitrag
cromos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Mi 03.09.03 00:02 
Hallo,

habe auf meiner Anwendung ein MonthCalendar (Win32 Reiter)
Damit er beim Starten schon den aktuellen Monat angibt schreibe ich
im FormCreate:

ausblenden Delphi-Quelltext
1:
calTermine.Date := Date;					


Funktioniert auch wunderbar. Das komische ist, das ich auf einer anderen Form auch noch einen MonthCalendar haben, wenn ich denselben Befehl im FormCreate Ereignis dieser Form eingeben:

ausblenden Delphi-Quelltext
1:
calendar1a.Date := Date;					


dann hat das keine Wirkung. Dieser Kalender zeigt immer August an.
Sind ansonsten beide gleich eingestellt.

Weiss jemand woran das liegt?

Gruss
Cromos
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Mi 03.09.03 17:41 
ich hab das bei mir mal kurz ausprobiert, aber es geht:
hier das programm. bei oncreate wird der tag in 2tagen angezeigt.
www.nettraxx.de.vu/tmp/Project1.rar

versuchs mal anschließend mit
ausblenden Delphi-Quelltext
1:
calendar1a.repaint;					

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
cromos Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 219


Delphi 7
BeitragVerfasst: Mi 03.09.03 20:08 
Das kuriose ist, auf einmal geht es.
Frag mich nicht wieso, aber aufeinmal geht es.

Das muss ich jetzt nicht verstehen :?
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Do 04.09.03 08:15 
das es geht liegt an mir: ich hab delphi-telepatische fähigkeiten :mrgreen:

_________________
Patrick
im zweifelsfall immer das richtige tun!!!