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

Designer always shows check boxes

edited November 2006 in General
Greetings!

I am showing the Designer with ShowComponents set to [scLabel, scLine], and
the Designer still shows the check box and the DB check box. How can I not
show them?

Also, is there a way to show the Calc tab and the Desing tab - and hide the
Preview tab?

Thanks in advance for the help!

Gary

Comments

  • edited November 2006
    Hi Gary,

    Custom components are not available from the ShowComponents property in the
    designer. In order to control whether these components are visible, you
    will need to remove or add the unit to the uses clause of your application.
    If you take a look at any of our End User demos, you will see that we have
    the MyCheckBox unit(s) IFDEF'd at the top to control whether they are shown
    or not.

    If you are using RB 10.x, take a look at the following example on how to
    hide a notebook tab in the designer.

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

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2006
    Hi Nico,

    I am using RB 10.x so thanks for the example on hiding the notebook tab!

    The checkbox issue is interesting - I am using the DBCheckBox in a different
    part of the report, but I don't want the user to have access to it in the
    part they can design (a SubReport), so I need the MyCheckBox unit(s) in my
    uses clause. Please let me know if I'm somehow missing something (it
    wouldn't be the first time!).

    Thanks, Gary

  • edited November 2006
    Hi Gary,

    If you need to show and hide custom components (such as the MyCheckBox
    component), you will need to register them and unregister them as you need.
    Take a look at the bottom of the myChkBox.pas file in the Initialization and
    Finalization sections. The Initialization section is called when the
    myChkBox file is added to the uses clause. If you need to hide all
    checkboxes, simply unregister the component and class. Reregister it if you
    would then like to show it again.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.