Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: So 18.05.08 09:07 
Hi, Delpher,

gibt es eine Möglichkeit, eine Message auszugeben und das Meldungsfenster schließt sich von allein, ohne dass ich es mit der Maus schließen muss?

Das wäre in meinem Fall angenehm für eine Selection / Multiselection bei einer Listbox, aus der ich Einträge auswähle.

Ich habe es versucht mit Canvas.Textout(10,10, 'blabla'); - Da bekomme ich aber gar nichts zu sehen.

Ich weiß nicht, wie / ob Application.ProcessMessages hier funktionieren könnte.

Vielen Dank für Hilfe,
Detlef

_________________
ut vires desint, tamen est laudanda voluntas
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 18.05.08 09:13 
Was genau du brauchst hab ich nicht so ganz verstanden, vielleicht solltest du das nochmal genauer erklären.
Eine selbstschließende ShowMessage kriegt man so: *klick*

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Jerk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 251

Vista Ultimate, Ubuntu
Turbo Delphi 2006
BeitragVerfasst: So 18.05.08 09:38 
Wenn alle Stricke reißen kann man ja auch ein Form dynamisch erstellen.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 18.05.08 09:44 
Ja aber wie in diesem Artikel schon steht, ist das eine bislang undokumentierte Methode von der man eventuell besser die Finger lässt.
Ich würde dir empfehlen, dass du einfach selber ein Formular erstellst und dich auch selber darum kümmerst, wann das wieder verschwindet.
Damit bist du zum einen flexibler und auch auf der sicheren Seite.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: So 18.05.08 09:56 
Noch eine kurze Erklärung:

Ich wähle mehrere Einträge nacheinander aus einer Listbox (mutiselect) aus und jedesmal muss ich bei showmessage den Eintrag mit Retn bestätigen. Das finde ich lästig.
Deshalb meine Frage.

Danke erstmal für die Antworten,
Detlef

_________________
ut vires desint, tamen est laudanda voluntas
Fabian E.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 554

Windows 7 Ultimate
Visual Studio 2008 Pro, Visual Studion 2010 Ultimate
BeitragVerfasst: So 18.05.08 11:52 
warum läaast du dann das ShowMessage nicht einfach weg?
Welchen Zweck hat es denn da?

gruß
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: So 18.05.08 14:21 
... auf das naheliegendste kommt man wohl erst zuletzt ... [oft ist weniger mehr]

Gruß, Detlef

_________________
ut vires desint, tamen est laudanda voluntas
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: So 18.05.08 14:39 
Die einzige saubere Lösung ist so eine TimerForm selbst zu programmieren. Damit könntest du z.B. auch die noch verbleibende Zeit anzeigen.

Aber im Prinzip erzeugt ShowMessage eine TMessageForm mit Application als Owner. D.h. du kannst theoretisch einen Timer nehmen, über Application die TMessageForm finden und mit Close schliessen. Andere Möglichkeit wäre im Timer Screen.FocusedForm.Close aufzurufen. Müsstest jedoch sicherstellen, dass du die ShowMessage Instanz erwischst.
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: So 18.05.08 17:13 
Hi, Delphiphan,

ich glaube, das lasse ich lieber ..
ich danke dir trotzdem,
Detlef

_________________
ut vires desint, tamen est laudanda voluntas