Need tips for align when scaling

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #69051
    RJ
    Participant

    Is there a easy way for align a label and spinedit. When scaling the label is not aligned to the spinnedit any more.

    Thanks in advance

    #69055
    Support
    Keymaster

    Do you mean the TsLabel component? Can you show it on screenshots or in the demo, please?
    Also, do you use the BoundLabel property of the TsSpinEdit?

    #69058
    RJ
    Participant

    Boundlabel is handy but i need on both sides of the TsSpinEdit text.

    You see the tekst is dropping when the PPI gets bigger. This is not so nice in my opinion.

    Attachments:
    You must be logged in to view attached files.
    #69067
    Support
    Keymaster

    Thank you, I see and I’ll try to improve it.

    #69092
    Support
    Keymaster

    I have researched a scaling of labels and see a reason why the label is shifted.
    Standard ScaleBy procedure used there, but all calculations are produced with integer numerics.
    Precision of calculations is lost. I have no idea how to change it, but I have solution for you. If correct algning of label is needed then you can use BoundLabel property or the TsStickyLabel component. These labels are specially realigning after scaling and have correct position. I have attached a project where you can see a difference between labels.

    Attachments:
    You must be logged in to view attached files.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.