Home Component Writing
New Blog Post: Email: Multi-Service

Preventing the user from deleting some controls

edited December 2003 in Component Writing

How can I stop the user from deleting some of the controls when they are in
design mode?
I have some complex reports which I had to design them with in delphi, then
I save the report template to file which is then gets loaded when the user
brings up the report. So my report template file relays on some controls to
be in always there and get deleted by the user.

Do I need to rewriter all of the report components by inheriting from the
each one and adding another property (i.e. LockControl:Boolean) then in the
destroy of the control I check for it to see if they are allowed to delete
it. Or is there another easy way of achieving this task?




  • edited December 2003

    Unfortunately, there is no easy way to prevent a user from editing certain
    components in the Report Designer. You would need to create "lockable"
    components that descend from the originals as you described below.

    Best Regards,

    Nico Cizik
    Digital Metaphors
This discussion has been closed.