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

Calc Tab

edited October 2003 in End User

I've seen a few examples on the newsgroups of how to hide the Data tab at
runtime with

ppUnRegisterDesignModule(TdaDataManager, 'TppDesignerWindow');

Can I do something similar with the Calc tab and will this also hide the
Calculations entries on the popup menu for variable fields?

I'm currently using 6.03 enterprise, BTW although will be upgrading to 7.x
eventually

--
Paul Toms (mailto:paultoms@cix.co.uk)

Comments

  • edited October 2003
    Hi Paul,

    You can toggle the visibility of the Calc tab and calculations dialog using
    the Designer.RapInterface properties. Set riDialog and riNotebookTab to
    false and you should get the effect you need.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    Oh dear, I should have known that. One can try too hard sometimes :) Thanks.

    --
    Paul Toms (mailto:paultoms@cix.co.uk)
  • edited October 2003
    I've run into a problem here though: if I at runtime I first open the
    designer with riDialog off, then close it (and I and freeing the form that
    owns the TppDesigner component as well so presumably everything is created
    afresh), then open the designer with riDialog ON, I get an AV :-( Its
    breaking in the routine:

    procedure ppRegisterForm(aAncestorClass, aDescendantClass: TFormClass);

    I can see that aDescendantClass is nil when RegisterClass(aDescendantClass)
    is called when it should be TraCalcDialog.

    Is this a bug in 6.03?

    --
    Paul Toms (mailto:paultoms@cix.co.uk)
  • edited October 2003

    Please create a a simple Delphi project and e-mail to
    support@digital-metaphors.com in zip format. I will test this code with RB
    7.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2003
    In article <3f86cf95$1@dm500.>, support@digital-metaphors.com (Nard
  • edited October 2003

    I think I have created a patch to RB 7.03 that will fix this issue.

    Please e-mail support@digital-metaphors.com and request this patch, if you
    are interested.


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

    Best regards,

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