Autor Beitrag
JVS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Di 11.10.11 14:22 
Hallo,
in einer Anwendung erzwinge ich die ENGLISCHE Datumseingabe durch die folgende Routine, die einmalig beim Programmstart durchlaufen wird:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure SetzeSystemFormate;
begin
  //...
  DateSeparator := '/';
  ShortDateFormat := 'yyyy/MM/dd';
  LongDateFormat := 'dddd, yyyy MMMM d';
  //...
end;


Wenn die Anwendung eine Zeitlang inaktiv ist (Win XP Pro, in die Taskleiste abgelegt; etwa nach 15 min) und man das Fenster dann wieder aktiviert, hat sich das Eingabeformat von selbst auf DEUTSCH umgestellt.
Kennt jemand dieses Verhalten, was ist der Grund dafür?
bummi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1248
Erhaltene Danke: 187

XP - Server 2008R2
D2 - Delphi XE
BeitragVerfasst: Di 11.10.11 14:34 
ausblenden Delphi-Quelltext
1:
Application.UpdateFormatSettings := False;					

_________________
Das Problem liegt üblicherweise zwischen den Ohren H₂♂
DRY DRY KISS
JVS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Di 11.10.11 20:25 
user profile iconbummi hat folgendes geschrieben Zum zitierten Posting springen:
ausblenden Delphi-Quelltext
1:
Application.UpdateFormatSettings := False;					


Das nenn ich eine prompte und kompetente Antwort.
Herzlich Dank!
JVS