Autor Beitrag
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: Mi 12.03.03 19:17 
Hab da ein kleines Problem. Ich schreibe die Ausgabe daten meines Progs in eine Excel-Tabelle.
Je nach Geschwindigkeit des Rechners kann das Laden von Excel und das Schreiben der Tabelle schon mal ein paar (~5-10) Sekunden dauern, daher möchte ich gerne in der Statusbar n text wie "bitte warten". Wie das geht weiss ich, mit
ausblenden Quelltext
1:
Statusbar1.panels[0].text:='Bitte warten';					

Problem ist, der Text erscheint erst, nachdem er mit dem schreiben fertig ist, obwohl der Befehl dafür später kommt.
Jemand ne Idee?

_________________
We are, we were and will not be.
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mi 12.03.03 19:26 
hau mal ein Application.ProcessMessages dazwischen.

_________________
Viele Grüße
Jakob
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mi 12.03.03 19:41 
Das Problem kenn ich irgendwoher. Geht deine Lösung sicher?
Gausi Threadstarter
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: Mi 12.03.03 20:02 
die Lösung scheint auch zu klappen. Hab aber noch eine andere gefunden:
Zumindest die Statusbar kann man mit
ausblenden Quelltext
1:
statusbar1.refresh;					

neu zeichnen lassen. Das müßte aber auch mit anderen Sachen klappen.

_________________
We are, we were and will not be.
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Mi 12.03.03 20:09 
Gausi hat folgendes geschrieben:
die Lösung scheint auch zu klappen. Hab aber noch eine andere gefunden:
Zumindest die Statusbar kann man mit
ausblenden Quelltext
1:
statusbar1.refresh;					

neu zeichnen lassen. Das müßte aber auch mit anderen Sachen klappen.
Jo, die muss auch funktionieren. Sie zwingt nämlich das Feld sich neuzumahlen! Dies ist eine saubere Methode als die genannte von Luckie, die auch nicht immer klappt....

Gruß wulfskin!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 12.03.03 22:00 
wulfskin hat folgendes geschrieben:
Dies ist eine saubere Methode als die genannte von Luckie, die auch nicht immer klappt....

Häää? Ich habe hier doch gar nichts vorgeschlagen!?!
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Mi 12.03.03 22:13 
Luckie hat folgendes geschrieben:
wulfskin hat folgendes geschrieben:
Dies ist eine saubere Methode als die genannte von Luckie, die auch nicht immer klappt....

Häää? Ich habe hier doch gar nichts vorgeschlagen!?!
Mhhh...peinlich ;)! Keine Ahung warum ich Gausi mit Luckie verwechselt habe, liegt wohl an der Ähnlichkeit?!

Sorry wulfskin!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Gausi Threadstarter
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: Mi 12.03.03 22:25 
hmmm.. hast du nicht eher DeCodeGuru mit Luckie verwechselt...?
Macht aber nix, hauptsache, es klappt jetzt. :D

_________________
We are, we were and will not be.
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mi 12.03.03 22:27 
na er hatte halt verwechselt, wen er verwechselt hatte. :? :shock:
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Do 13.03.03 17:41 
Tja, das Alter...es macht sich schon bemerkbar...;)
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: So 16.03.03 17:17 
.repaint ist zwar eine sichere Methode, aber bei längeren Proceduren packe ich immer einige Application.ProcessMessages rein, da das Problem nämlich z.B. durch kurz überlagernde Fenster (ja es gibt Leute die mehrere Programme gleicheitig laufen lassen ;)...) wieder da wäre, weil das Fenster dann eben nicht mehr neu gezeichnet wird.