Home Component Writing

Preventing the user from deleting some controls

edited December 2003 in Component Writing
Hi,

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?

Regards

NB

Comments

  • edited December 2003
    Hello,

    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
    http://www.digital-metaphors.com
This discussion has been closed.