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?
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.
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
Comments
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
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