Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Hiding report components in end-user designer

edited August 2005 in End User
Hi,

We use 1 central tppVariable for all calculations that has to be done on a
ging pipeline. But when the user deletes the variable from its report, all
calcs dissapear too making the report unusable. Further more he can't hook
it back up because the code resides in the delphi form... Isn't there a way
to hide certain report components or set them read only/non changeable/non
deletable.

Greetings,
Filip Moons

Comments

  • edited August 2005

    Here is an example of preventing the end-user from selecting a specified
    component...

    http://www.digital-metaphors.com/tips/DesignerSelection.zip



    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2005
    Nice thx Nard, any way to take it one step further and completely hide it
    from the designer. The end-user still can change settings for 'non
    selectable' components by right clicking. Especially the 'Timing' entry in
    the popup menu for variables i would prefer to be hidden or non accessable.

    Greetings,
    Filip Moons.



  • edited August 2005

    There is nothing built into the product that enables components to be hidden
    from the end-user. That would be a nice feature to add to a future release
    (also the ability to lock components from being moved by the end-user).

    The TppDesignerWindow class (see ppDsgner.pas) has a private, internal
    DesignControlManager class that it uses to gain access to the DesignControl
    associated with a Component. (For example a TppVariable will have an
    associated DesignControl that is used by the designer. So you might be able
    to modify the source code of TppDesignerWindows to set the
    DesignControl.Visible property to False.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.