Disable TsButton changes text alignment

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.