Alignment problem with TsWebLabel

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37162
    HeDiBo
    Participant

    The alignment problem is best illustrated with this demo project:

    [attachment=7928:AligningWebLabels.rar]

    In design mode it may look alright, but when you run it, the weblabels at the bottom are distorted.

    #55660
    Support
    Keymaster

    Thank you for the demo.

    Same problem I see with standard TLabel components in a new application.

    Something wrong with AutoSizing in VCL, seems. I will think, maybe I can improve it in the package.

    #55662
    HeDiBo
    Participant
    'Support' wrote:

    Thank you for the demo.

    Same problem I see with standard TLabel components in a new application.

    Something wrong with AutoSizing in VCL, seems. I will think, maybe I can improve it in the package.

    I use Delphi XE4 and don't see this problem with standard labels.

    This test project illustrates it:

    [attachment=7933:LabelAlignment.rar]

    #55666
    Support
    Keymaster

    Look my example 🙂

    Some conditions are required for reproducing.

    #55747
    HeDiBo
    Participant
    'Support' wrote:

    Look my example 🙂

    Some conditions are required for reproducing.

    Yeah. Because you start off with labels that are way too small.

    Start off with labels that provide enough room for the text, and at run time, labels align nicely.

    #55752
    Support
    Keymaster

    But autosizing is not working well there 🙂

    Same solution you can use with TsWebLabel too, I think (set bigger size)

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.