Changing the text size in ONE alarm list

Find and share HowTos to various installations / configurations!
7 posts • Page 1 of 1
nmnogueira
Posts:125
Joined: Thu May 05, 2011 12:59 pm

Changing the text size in ONE alarm list

Post by nmnogueira »

Hi,

I am using WinCC OA 3.14 P013.

I want to have an alarm list in a Video Wall, which must have a different text size in order to be able to be read from distance. I have been scraping around aec.ctl/aes.ctl but still haven't found a way to do this.

Is there an easy way to do it?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Changing the text size in ONE alarm list

Post by leoknipp »

The font for the table is set in the function aes_initTable() defined in aes.ctl with the following command:
tableShape.font=font;

The default font can be defined in the central AEScreen settings: System Management --> Settings A&E - Row/Screen.

If you want to change the font only for one specific computer or one specific configuration you can modify the function aes_initTable().
Another possibility is maybe the usage of a stylesheet to change the table settings.

Best Regards
Leopold Knipp
Senior Support Specialist

nmnogueira
Posts:125
Joined: Thu May 05, 2011 12:59 pm

Re: Changing the text size in ONE alarm list

Post by nmnogueira »

Thanks Leopold.

In the meanwhile I found that line of code you indicated. But I still have the problem of identifying which table I am on, and apply the formatting only to that table.
Also, I would need to change cell width and height to accommodate the new text size.

Do you have any reference on how to do it with a stylesheet?

Romero
Posts:27
Joined: Wed Jul 19, 2017 9:24 am

Re: Changing the text size in ONE alarm list

Post by Romero »

If it helps you for what you want to get, you can use the "adjustColumn" table function to adjust the width of a column for the widest entry and "rowHeight" function to manually adjust the height of the rows in the table.

Regards
Agustín Romero

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Changing the text size in ONE alarm list

Post by leoknipp »

To identify the table which shall be modified you can probably use
-- the UI number, if the UI is started with a fixed number
-- the hostname, if the UI used for the Video Wall is started on a specific computer
-- the screensize, if the Video Wall has a specific screen size

Best Regards
Leopold Knipp
Senior Support Specialist

nmnogueira
Posts:125
Joined: Thu May 05, 2011 12:59 pm

Re: Changing the text size in ONE alarm list

Post by nmnogueira »

Thanks,

I tried to format the table using CSS, but apparently the CSS is not working correctly with the QTableView yet:
https://portal.etm.at/index.php?option= ... =6275#6301

In the meanwhile I did it with code placed in the panel initialization script, with a delay to allow the AES initialization to finish first. It's an ugly solution but seems to be working.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Changing the text size in ONE alarm list

Post by leoknipp »

Instead of using delay() in the Initialize event of the panel/table you can modify the function aes_initTable().
This is the function which is processed first when opening the AEScreen.

During the initialization datapoints need to be created, if they do not exist already. Depending on the current system load and the current situation it can take some time until the UI gets the response that the DP was created. In that case the hard coded delay will probably be too short.

Best Regards
Leopold Knipp
Senior Support Specialist

7 posts • Page 1 of 1