Change font.style affects position
Hello,
After my report-layout is loaded, I change the font.style with the following code :
// At this point, TppLabel(Components[c]).left = 90,7
TppLabel(Components[c]).font.style := TppLabel(Components[c]).font.style -[fsbold];
// At this point, TppLabel(Components[c]).left = 192,8
this code has been working for years without problems. Has something changed in the last version that affacts this ?
And how can I avoid this ?
kind reagrds,
Dirk Janssens,.
After my report-layout is loaded, I change the font.style with the following code :
// At this point, TppLabel(Components[c]).left = 90,7
TppLabel(Components[c]).font.style := TppLabel(Components[c]).font.style -[fsbold];
// At this point, TppLabel(Components[c]).left = 192,8
this code has been working for years without problems. Has something changed in the last version that affacts this ?
And how can I avoid this ?
kind reagrds,
Dirk Janssens,.
Comments
https://youtu.be/aNShbcStScY
kind regards,
Dirk Janssens.
I just sent you a patch for RB 21.03 that resolves the issue.
This behavior occurs for specific cases, for example when Label/DBText AutoSize False and TextAlignment RightJustified.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
kind regards,
Dirk.
We are facing exactly the same problem and addition we found out that changing autosize may cause radical change to layout. We are using RB 21.03.
BEFORE
object ppLabel1: TppLabel mmHeight = 3704 mmLeft = 122767 mmTop = 21431 mmWidth = 42333 BandType = 0 endAFTER setting autosize to false
object ppLabel1: TppLabel AutoSize = False mmHeight = 0 mmLeft = 497703937 mmTop = 497734099 mmWidth = 42333 endhttps://pasteboard.co/H2kymFTXSYtI.jpg
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com