Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   [InnoSetup] Benutzername eingeben (https://www.delphipraxis.net/196459-%5Binnosetup%5D-benutzername-eingeben.html)

TigerLilly 30. Mai 2018 07:10

AW: [InnoSetup] Benutzername eingeben
 
Gib mal das WizardForm.NextButton.Enabled := MyEdit.Text <> ''; in die KeyPressmethode.
Ich bin nicht sicher, wann das OnChange ausgelöst wird.

Alternativ benutze

Code:
function NextButtonClick(CurPageID: Integer): Boolean;
Called when the user clicks the Next button. If you return True, the wizard will move to the next page; if you return False, it will remain on the current page (specified by CurPageID).

Note that this function is called on silent installs as well, even though there is no Next button that the user can click. Setup instead simulates "clicks" on the Next button. On a silent install, if your NextButtonClick function returns False prior to installation starting, Setup will exit automatically.
und prüfe dein Eingabefeld + verweigere bei Bedarf das Weitergehen.

MarkusL. 30. Mai 2018 10:23

AW: [InnoSetup] Benutzername eingeben
 
Vielen Dank für die ganze Hilfe!!!
Hab es jetzt mittels einer MsgBox gemacht.
Aber wieso es nicht ohne funktioniert (Kein Name=Kein NextButton) weiß ich immer noch nicht.
Hauptsache ich habe jetzt eine Möglichkeit!!

Danke!!


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:50 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz