Disable TsButton changes text alignment

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35106
    Kurt
    Participant

    All,

    When I disable a TsButton, the text moves from center-alignment to top-left alignment. Is there a property or set of properties that control this? I want the text to stay put and simply go gray.

    Kurt

    #47941
    Hamilton
    Participant

    Hi Kurt,

    I tried to repro this and cannot. I put two buttons on a new form, made sButton1 quite large and sButton2 has the OnClick even which says sButton1.Enabled := not sButton1.Enabled. For me, the caption stays in the centre and the disabled button looks as I'd expect. In my testing the only way I could get the button caption to move was to make it a CommandLink. Anyway I've attached a screen grab that shows how the disabled button appears in my test app. I wonder if you get the same results with a simple test app; if you can then perhaps you can break your program down into smaller chunks to identify what is failing. Good luck.

    Regards,

    Hamilton

    #48083
    Support
    Keymaster

    Hello Kurt

    Can you show an example please?

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