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

TppDBText Autosize Default Property

edited September 2004 in End User
For the autosize property in ppCtrls.pas the default value for a TppDBText
type is False. Is there anyway to change it so it is True without changing
the source code?

Thanks.

SMP

Comments

  • edited September 2004
    I should have said without setting the autosize property for each dbText
    component in a report. Our customers always want the these components to be
    autosized and when they go through the report wizard, they end up spending
    setting the property.

    Thanks.

    SMP
  • edited September 2004

    1. Check out the TppLayoutFactory class defined in RBuilder\Source\ppRptWiz.
    This class is used to control the creation of components by the report
    wizard. You can descend from this class and then register your custom layout
    factory like this:


    uses
    ppRptWiz;

    initialization

    gcLayoutFactory := TmyLayoutFactory;

    finalization
    gcLayoutFactory := nil;


    2. If you want to customize the creation of components that get created when
    a user uses the component toolbar, then use the
    TppDesigner.OnCreateComponent event.




    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

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