TsCheckBox scaleBy() problem – still not Solved

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #35583
    SzakiLaci
    Participant

    Dear Support,

    Whether Autosize is True or False > resulting the same bad behaviour:

    Giving ScaleBy() command in Form1.OnShow event does not recalculate the “Width” property of TsCheckBox .

    See attached pictures (normal and scaled)

    http://www.alphaskins.com/forum/uploads/monthly_01_2013/post-2409-052939200%201359177011_thumb.png

    http://www.alphaskins.com/forum/uploads/monthly_01_2013/post-2409-023884100%201359177025_thumb.png

    Thanks !

    [Version: 8.14]

    Edit:

    in [Version 8.31] it Works fine, IF “skinned” turned ON.

    But in non-skinned state there's still the width-hight problem if Autosize is off.

    #50040
    Support
    Keymaster

    I think, it's a standard behaviour?

    I'll check it.

    You can help me if send a test-app

    #50405
    SzakiLaci
    Participant

    Thanks for fixing it (half way…) ๐Ÿ™‚

    … just checked in 8.31b — works fine now. Both Autosize True/False !IF! Skinned is Active.

    But problem still exists in non-skinned state. (Realized and Edited apr.10)

    #50661
    SzakiLaci
    Participant
    'Support' wrote:

    I think, it's a standard behaviour?

    I'll check it.

    You can help me if send a test-app

    I was able to finally analyze the problem, and I think I've found what is causing the error ! ๐Ÿ˜‰

    It's the integer-width rounding. About 1 pixel too small after ScaleBy. That's why it's breaking into 2 lines, when it shouldn't.

    Like sCheckBox1.width=77 >> ScaleBy(172,100); >> 132.44 = >> 132px.

    An easy way to test and prevent it, to change ALL TsCheckBox Captions by adding a ' ' space after it. And voala.

    Of course it would be better, if it would calc the correct width ๐Ÿ˜€

    #59605
    SzakiLaci
    Participant

    This is a duplicate topic of the other

    Same problem still exists after 6 years (at v14.26) .

    Lรกszlรณ

    PS: why did you delete those pictures from your server?

    #59607
    SzakiLaci
    Participant

    Prepared a demo to test with:

    [attachment=9345:CheckBoxScale.zip]

    As you can see > the problem occures only if:

    – [fsBold]

    – Skinned=false;

    – AutoSize=true;

    So the version 14.26 is better, but still not fully OK.

    – are you maybe using round() at calculating the needed space but div/trunc() at wordwrap ?

    – or maybe not setting style during pre-calc? ( [fsBold] … takes more space ! )

    [attachment=9344:sCheckBox_too_long_autoSize2.jpg]

    #59615
    Support
    Keymaster

    Thank you for the demo, I will check it soon.

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