Home General
New Blog Post: Email: Multi-Service

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,.

Comments

  • The same behaviour is seen designtime in the reportdsigner. Changing fontstyle +/- bold changes the position of labels. Is this a bug ?
  • See this recording :
    https://youtu.be/aNShbcStScY
    kind regards,
    Dirk Janssens.
  • Hi Dirk,

    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
  • Thank you, it works now !
    kind regards,
    Dirk.
  • edited March 25
    Hi!

    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
          end

    AFTER setting autosize to false
          object ppLabel1: TppLabel
            AutoSize = False
            mmHeight = 0
            mmLeft = 497703937
            mmTop = 497734099
            mmWidth = 42333
          end

    https://pasteboard.co/H2kymFTXSYtI.jpg
  • This issue is fixed with a patch for RB 21.03. Registered customers with a valid software subscription can email support@digital-metaphors.com to receive the patch.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.