Zooming can clip AutoSize labels
RbPro 15.04, Delphi XE4
It seems that zooming in the editor sometimes clips the text in some
controls.
IE I have a TppLabel with:
AutoSize = true
Font = Arial, size 10
Caption = 'Total Euro'
TextAlignment = taLeftJustified
Depending on the zoomfactor it seems that the label is clipped. At 100 % its
ok. But at 110 % that last 'o' is only half visible. The amount of clipping
changes with the zoomfactor. It also depends on the text, font and
font-size.
I see this only in the designer, preview and print is always ok.
If i change the caption to ‘TTTTTTTTTTTTTTTTX’ then the X is only visible at
100%. And when you give the label a border it is also clipped. And at some
zoomlevels the bottom part is also gone.
I see this in our application but also at Delphi designtime with the
installed 15.04 packages. Also tried with my system set to 120 dpi and 96
dpi. Results are the same.
Again, it only happens in the designer. But it is confusing, you use the
zoom to better see what you are doing but sometimes gives the wrong
impression that something is missing.
Regards,
Max Paay
Quadrant Software bv.
The Netherlands.
It seems that zooming in the editor sometimes clips the text in some
controls.
IE I have a TppLabel with:
AutoSize = true
Font = Arial, size 10
Caption = 'Total Euro'
TextAlignment = taLeftJustified
Depending on the zoomfactor it seems that the label is clipped. At 100 % its
ok. But at 110 % that last 'o' is only half visible. The amount of clipping
changes with the zoomfactor. It also depends on the text, font and
font-size.
I see this only in the designer, preview and print is always ok.
If i change the caption to ‘TTTTTTTTTTTTTTTTX’ then the X is only visible at
100%. And when you give the label a border it is also clipped. And at some
zoomlevels the bottom part is also gone.
I see this in our application but also at Delphi designtime with the
installed 15.04 packages. Also tried with my system set to 120 dpi and 96
dpi. Results are the same.
Again, it only happens in the designer. But it is confusing, you use the
zoom to better see what you are doing but sometimes gives the wrong
impression that something is missing.
Regards,
Max Paay
Quadrant Software bv.
The Netherlands.
This discussion has been closed.
Comments
Thanks for the feedback. I can duplicate the behavior here and reviewed the
relevant code. I put this on the list to improve for RB 16, I have some
ideas that may lead to improvements, but will require some redesign.
Best regards,
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thanks for the info, we have to wait then.
Regards,
Max Paay
Quadrant Software bv.
The Netherlands.