Autor Beitrag
McMighty
Hält's aus hier
Beiträge: 16



BeitragVerfasst: So 26.08.07 13:27 
Hi

Ich kann mit Application.Title den Text der in dem zugehörigen Button in der unteren Taskleiste ändern. Das klappt aber nur wenn das Programm gerade im Vordergrund ist. Wenn ich es minimiere klappt das nicht. Wie kann ich das erzwingen, dass das auch minimiert passiert?

Vielen Dank

MC


Moderiert von user profile iconGausi: Topic aus Windows API verschoben am So 26.08.2007 um 14:51
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 26.08.07 13:48 
Hm. Ich habe das gerade mal ausprobiert - wenn ich nen Timer auf die Form packe mit sowas:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
  Timer1.tag := Timer1.Tag + 1;
  Application.Title := Inttostr(Timer1.Tag);
end;

Dann zählt der munter weiter hoch - auch wenn die Form minimiert ist. Wie machst du das denn genau?

_________________
We are, we were and will not be.
McMighty Threadstarter
Hält's aus hier
Beiträge: 16



BeitragVerfasst: So 26.08.07 16:45 
Ich habe das genauso gemacht. Das Fenster dann minimiert und irgendein ein anderes Programm geöffnet (z.B. Firefox).

Erst wenn ich das Fenster wieder öffne ändert sich der Titel in der Taskleiste.

Ciao jens
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 26.08.07 16:57 
Dann zeig mal was Code. Wahrscheinlich hängt deine Anwendung und das Fenster/der Taskleisteneintrag wird nicht aktualisiert, weil gerade was anderes gemacht wird... :nixweiss:

_________________
We are, we were and will not be.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 26.08.07 17:28 
Mir fällt sogar auf, dass wenn das Fenster minimiert ist, der Title sich schneller aktualisiert. Stellt mal bei dem Source von user profile icongausi das Intervall auf 100.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 26.08.07 17:33 
Hm. Jetzt möchte ich dafür aber mal ne Erklärung haben - vielleicht haben wir dann ja auch die Lösung für das eigentliche Problem hier... :gruebel:

_________________
We are, we were and will not be.
McMighty Threadstarter
Hält's aus hier
Beiträge: 16



BeitragVerfasst: So 26.08.07 17:54 
Oh ja, jetzt sehe ich auch meinen Fehler. Die Anweisung stand in der DrawCell Routine. Die wird natürlich nicht ausgeführt wenn es minimiert ist.

Sorry

Danke Mc
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: So 26.08.07 18:34 
OK, das eigentliche Problem des Threads wäre gelöst...
Aber das mit der aktualisierung ist ja spannend...
Bei mir stockt der zwischendurch auch immer ein bisschen