Replace TControl.SetVisible and TControl.SetEnabled

From: Alexander Muylaert (ask_at_hotmail.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 09:01:34 +0200

Hi

I'm developing a component for security. The current security system
requires a rebuild of the entire VCL since it implements 2 extra properties
to TControl. SecurityVisible and SecurityEnabled.

I don't like this approach, it is a lot of work before everything is
recompiled on each machine. I rather have the Visible and Enabled
properties handled by a "third" party.

I have rewritten a component that hooks to the control. I only have one
problem. I need to know when something in the application is changing the
visible or enabled property of the control. Currently I hook to the
CM_VISIBLECHANGED and CM_ENABLECHANGED. Unfortunatly this only works when
the property is really changed.
If the visible is set to true from somewhere in the app, I might need to
reset this to false because of security reasons. So if the developer of the
application would set this again to false, I don't get the message. And I'll
never know the developer wants this component invisibile.

I need to hook into the setvisible and setenabled without changing anything
in the VCL-source. I know the people from Fastcode can help me, something
likewise is done in fastmove. The hack should work only on D7.

Kind regards and many thanks

Alexander



Relevant Pages

  • Re: Access 2003 Macro Security Modification
    ... > development and deployment is supposed to be modified, ... I'm not much of .NET developer (OK, I'm not a .NET developer at ... Or is the security level ... to determine if the code has been altered (Public Key). ...
    (microsoft.public.access.modulesdaovba)
  • RE: Deny access to copy files
    ... "I think the above should work, I know it is restrictive to the developer, but we are trying to find a solution aren't we?" ... To achieve a acceptable security processing much of the responsibility is left to the programmer. ... Microsoft.NET Framework Developer's Guide, Introduction to Code Access Security, ... BDO Kendalls is a national association of separate partnerships and entities. ...
    (Security-Basics)
  • Re: creating "runas" shortcut through vb script
    ... Our experience is that when someone (i.e. the developer of the software) ... poor job of designing the security in properly in the first place. ... Dim strAppPath, strWorkDir, strIconPath ...
    (microsoft.public.scripting.vbscript)
  • Re: Sharepoint - Security Logistics Nightmare?
    ... there is no item level security - security for a doc lib is at the doc lib ... If you dont belong there, ... No one else in the company can view my private ... > Invoices should be private between each developer and HR. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Thinking of upgrading runtime from Access 97, any comparisons / tips?
    ... interestingly, I do have Office 2000 Developer, and the only time I've used ... Access 2003 doesn't really add much over A2k - Most access aps ... I avoid 2003 where possible because of the crazy macro security ...
    (comp.databases.ms-access)