Text align of TsButton Root › Technical support › Tricks This topic has 1 reply, 2 voices, and was last updated 7 years, 4 months ago by Support. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts June 19, 2017 at 8:33 am #37525 RaccoonParticipant 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 July 4, 2017 at 5:37 pm #56862 SupportKeymaster Hello! I will try to improve it in the nearest release. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In Root › Technical support › Tricks