Forum: Sonstige Fragen zu Delphi
Delphi
by shmia,
24. Jan 2007
Nimm mal ein neues Formular und setze zwei BitButtons drauf.
BitBtn1: property Kind=bkOK
BitBtn2: property Kind=bkCancel
Damit ist das Grundgrüst für ein modales Formular schon fertig.
Es wird kein Eventhandler benötigt, da über das Property ModalResult der Buttons alles von selbst geht.
Es wird keine sonstige Variable ("aborted") oder ähnliches benötigt, das regelt alles ModalResult.
Forum: Sonstige Fragen zu Delphi
Delphi
by shmia,
24. Jan 2007
Die Passwort Abfrage gibt es schon fix & fertig.
Der Dialog erlaubt nicht nur das Abfragen eines Passworts,
sondern enthält auch einen Passwort-Ändern-Dialog.
Hier die relevanten Properties:
// PwChange = True: Change PW Dialog
// PwChange = False: Input PW Dialog
property PwChange:Boolean read FPwChange write FPwChange;
property Caption : string read FCaption write FCaption;
...