Autor Beitrag
delphimike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Fr 05.11.04 16:01 
Wie schaffe ich es, daß ein Formular NACH Selbstdarstellung eine Prüfung durchführt und ein neues Formular aufruft

Oncreate und onshow treten alle vor der Selbstdarstellung auf, d.h. der Prüfdialog wird bereits angezeigt bevor das Hauptformular angezeigt wird. Das erscheint dann erst nach Beendigung des Prüfdialogs. Es sollte aber umgekehrt sein

Aftershow wäre gewünscht aber das gibt es nicht.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 06.11.04 00:19 
Dafür gibt es zwei Möglichkeiten:

Dirty-Lösung: Nutzung des OnActivate-Ereignisses des Formulars und anschließendes Löschen der Ereignisbehandlung

Saubere Lösung: Definieren einer Benutzerdefinierten Windows-Botschaft für's Formular und senden dieser mit PostMessage im OnShow-Ereignis.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Sa 06.11.04 00:41 
dirty-dirty: nen Timer, der im onshow aktiviert wird und ein intervall von 0,2s (austesten) hat und der dann die Überprüfung macht...

vorteil: sehr schnell und einfach implementiert ^^