mcb Posted July 9, 2020 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. Quote
Sherzod Posted July 9, 2020 Posted July 9, 2020 Merhaba, Thank you for your interest in UniGUI. Please analyze this demo: \FMSoft\Framework\uniGUI\Demos\Desktop\LoginForm Cookies Quote
mcb Posted July 9, 2020 Author 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.? Quote
Sherzod Posted July 9, 2020 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 Quote
mcb Posted July 9, 2020 Author 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? Quote
Hayri ASLAN Posted July 9, 2020 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.