<div dir="ltr"><div>Hi all!</div><div><br></div><div>I'm rewriting the security system of my project, and I extended the support of my secure controls to all standard controls of Lazarus, including TForm and TFrame classes.</div><div><br></div><div>The default behavior of all controls is if the user is not allowed to interact with it, the control is disabled, otherwise it's enabled.</div><div><br></div><div>But with TForm, I have two ways of allow/Deny:</div><div><br></div><div>** Enable/disable whole form (done).</div><div>** Allow show if user is allowed to show the form, or hide/close if the user log out of the system or not authorized to view the form.</div><div><br></div><div>My problem is: What's the best TForm method to override to abort form show via TForm.Show and TForm.ShowModal calls?</div><div><br></div><div><br></div><div>-- <br><div class="gmail_signature">The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br><a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a></div>
</div></div>