Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically setting properties for Rounded Rectangles
Message
 
To
03/04/2009 08:39:01
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01392953
Message ID:
01392976
Views:
66
>I can use the Report Listener to change the color of a Field (the old SP0 way, not yet using the Dynamics tab). But when I try to to change the color of a Rounded Rectangle, the change does not take. The Help file discussing the Dynamics tab hints that this is for Fields only.
>
>Am I just doing something wrong or is there a problem here?
>
>
>Tim

For shapes .. the only dynamic properties you can change are the height and the width. For fields you can change the font properties. The reason is that the Dynamics feature coordinates with the "EvaluateContents" and "AdjustObjectSize" methods of the ReportListener class. The EvaluateContents method allows font properties to be changed but isn't called when processing shapes. The AdjustObjectSize method is only called with shape properties and it gives you the chance to alter the size of a shape.


Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Reply
Map
View

Click here to load this message in the networking platform