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!
Left aligning text on push buttons
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Left aligning text on push buttons
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
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
delete