mcb Posted July 9, 2020 Share Posted July 9, 2020 Değerli arkadaşlar, Unigui yeni test etmeye başladım. sitedeki dokumanlara gore birşeyler yapılıyorum ama login form kısmında takıldım. ok buttonuna basıldıgında db ye bağlanıp sorgulama yapıyorum. ama sonuç ne olursa olsun mainForm direk görüntüleniyor. normalde ModalResult := mrOk kodundan sonra olması gerekmiyormu. Link to comment Share on other sites More sharing options...
Sherzod Posted July 9, 2020 Share Posted July 9, 2020 Merhaba, Thank you for your interest in UniGUI. Please analyze this demo: \FMSoft\Framework\uniGUI\Demos\Desktop\LoginForm Cookies Link to comment Share on other sites More sharing options...
mcb Posted July 9, 2020 Author Share Posted July 9, 2020 i wondered something.. procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean); the Handled param. if i set false Handled, login is canceled.? Link to comment Share on other sites More sharing options...
Sherzod Posted July 9, 2020 Share Posted July 9, 2020 9 minutes ago, mcb said: the Handled param. if i set false Handled, login is canceled.? If you have a login form: Handled := True - cancels login form Handled := False - shows login form 1 Link to comment Share on other sites More sharing options...
mcb Posted July 9, 2020 Author Share Posted July 9, 2020 i still have problem. whenever i do a database connecttion, then mainform appears. iam using mydac components and my myConnection component in mainForm Edit: i move the my connecttion components to uniMainModule and my problem solved. another question: i store my functions and procedures in uniMainModule. is that good idea? Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted July 9, 2020 Share Posted July 9, 2020 Merhaba MainModule her formdan ulaşılabilir olduğu için ortak fonksiyonlarınızı mainmodule üzerine koymanız doğru bir düşüncedir. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now