Text align of TsButton

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37525
    Raccoon
    Participant

    Hi all,

    is there a way to set the text alignment of a Standard TsButton to left?

    Tired:

    Code:
    for(int i=0; iControlCount; i++)
    {
    TsButton *btn = dynamic_cast(this->Controls);
    if(btn)
    {
    DWORD dwTextAlign = GetWindowLong(btn->Handle, GWL_STYLE);
    SetWindowLong(btn->Handle, GWL_STYLE, dwTextAlign | BS_LEFT);
    }
    }

    But didnt work. (Std. TButton works)

    Thanks in advance

    Alex

    #56862
    Support
    Keymaster

    Hello!

    I will try to improve it in the nearest release.

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