Left aligning text on push buttons

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
4 posts • Page 1 of 1
gmcphers
Posts:5
Joined: Tue Jun 09, 2015 12:43 pm

Left aligning text on push buttons

Post by gmcphers »

So I am using Wincc_OA 3.13 and I am trying to left align text on a push button. None of the left align features that are built in seem to left align the test in a push button for my program. So I went and built a "*.css" file in my config folder.
Below is what I wrote in the "*.css" file

QPushButton
{
text-align: left;
}

I then linked that correctly to my UI. It runs with no issue and does left align text but not in my programs. It aligns the text in the items in Wincc OA such as prompt popups and the like. I looked for several hours around the internet and didn't manage to find any solutions. Any idea what to do? Also could I use this just for particular buttons instead of all buttons? Thanks very much for your time!

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Left aligning text on push buttons

Post by Gertjan van Schijndel »

You could set the property 'Typename' to only address the shapes with this type like in the example below:

Code: Select all

QPushButton[type = "BtnTextLeftAligned"]
{
  text-align: left;
}

mcmullan
Posts:16
Joined: Mon Jan 31, 2011 10:18 am

Re: Left aligning text on push buttons

Post by mcmullan »

Can you provide a sample panel that has this code implemented in it for v3.13. I have tried this code, and cannot seem to get it to work.

gmcphers
Posts:5
Joined: Tue Jun 09, 2015 12:43 pm

Re: Left aligning text on push buttons

Post by gmcphers »

delete

4 posts • Page 1 of 1