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

TppScreenDevice.ScaleX and ScaleY inVersion 12?

edited May 2011 in Devices
Hello,

we are using some self written controls in our reports have have updated
from version 11 to version 12 now.

When recompiling our application i noticed that in version 11 there were
2 properties "TppScreenDevice.ScaleX" and "TppScreenDevice.ScaleY" that
are not longer part of the class "TppScreenDevice" in version 12.

That leads to some problems with our self written controls because they
are using these properties for internal size calculations.

Can you give me a hint why these properties disapeared in the new
version and what i can do to get the same information for our internal
calculations?

Thanks in advance,
Ralf

Comments

  • edited May 2011
    Hi Ralf,

    For RB 12 we refactored the TppScreenDevice and created the descendant
    TppGraphicsDevice. This was to leverage the drawing capability of the
    screen device to be used with the new image devices that were added.

    While doing so it was realized that for screen renderings, there is no
    need for both a ScaleX and ScaleY property. These have been replaced by
    the Scale property.

    In your code, performing a replace all for ScaleX and ScaleY (to Scale)
    should fix the issue.


    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2011
    Am 17.05.2011 14:48, schrieb Nico Cizik (Digital Metaphors):

    Thanks for that info!

    Ciao,
    Ralf
This discussion has been closed.