Replace TControl.SetVisible and TControl.SetEnabled
From: Alexander Muylaert (ask_at_hotmail.com)
Date: 06/25/04
- Next message: Alexander Muylaert: "Re: Replace TControl.SetVisible and TControl.SetEnabled"
- Previous message: Jens Gruschel: "Re: HLT"
- Next in thread: Alexander Muylaert: "Re: Replace TControl.SetVisible and TControl.SetEnabled"
- Reply: Alexander Muylaert: "Re: Replace TControl.SetVisible and TControl.SetEnabled"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Alexander Muylaert: "Re: Replace TControl.SetVisible and TControl.SetEnabled"
- Previous message: Jens Gruschel: "Re: HLT"
- Next in thread: Alexander Muylaert: "Re: Replace TControl.SetVisible and TControl.SetEnabled"
- Reply: Alexander Muylaert: "Re: Replace TControl.SetVisible and TControl.SetEnabled"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|