Table Cell with progress bar

Find and share HowTos to various installations / configurations!
10 posts • Page 1 of 1
zscriven
Posts:21
Joined: Tue Jul 05, 2016 11:03 pm

Table Cell with progress bar

Post by zscriven »

I was wondering if there was a table widget object that would allow for a progress bar in one of the cells. Similar to a percent fill in an excel spreadsheet.

Thanks!

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Table Cell with progress bar

Post by mkoller »

Yes, there is.
You set it like this:

Code: Select all

  setValue("table", "cellWidgetRC", 2, "#2", "Bar", makeDynAnytype(0.0, 100.0));
change value e.g.:

Code: Select all

  for (int i = 0; i

AGorbatykh
Posts:59
Joined: Thu Dec 17, 2015 1:01 pm

Re: Table Cell with progress bar

Post by AGorbatykh »

nice one!

zscriven
Posts:21
Joined: Tue Jul 05, 2016 11:03 pm

Re: Table Cell with progress bar

Post by zscriven »

Thank you Martin!

AGorbatykh
Posts:59
Joined: Thu Dec 17, 2015 1:01 pm

Re: Table Cell with progress bar

Post by AGorbatykh »

Where can I get whole list of argument as like "Bar"? For example I want to put a pictiure or numericbar in a cell

RudiKreiner
Posts:198
Joined: Mon May 16, 2011 2:10 pm

Re: Table Cell with progress bar

Post by RudiKreiner »

This doesn't answer your question completely but here is an example of how to put a pixmap in a table cell:

setValue("", "cellFillRC", 2, "#2", "[pattern,[tile,bmp,apply_small.bmp]]");

cellFillRC is one of the available functions described in the table section of the WinCC OA help, but I didn't find anything about the bar there, so I don't know if it is just missing in the help or is of some other category that is described elsewhere.

AGorbatykh
Posts:59
Joined: Thu Dec 17, 2015 1:01 pm

Re: Table Cell with progress bar

Post by AGorbatykh »

Good, it's little bit better.
Thanks Rudi!

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Table Cell with progress bar

Post by mkoller »

In the documentation of cellWidgetRC, e.g. in the Help section qthelp://wincc_oa/doc/Control_Grafik/cellWidgetRC.htm
In the table of the arguments, you find "widgetType" and "param" which describes the possibilities.
Also see the example in this section

AGorbatykh
Posts:59
Joined: Thu Dec 17, 2015 1:01 pm

Re: Table Cell with progress bar

Post by AGorbatykh »

Thanks.
There are only 3 widgetType in help: "PushButton", "ComboBox" and "Bar". Is that's all?
As Rudi said there's another one it is picture setValue("", "cellFillRC", 2, "#2", "[pattern,[tile,bmp,apply_small.bmp]]");, that was very helpful for me.
May by there's some way to puck a numericbar into a cell?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Table Cell with progress bar

Post by mkoller »

For "cellWidgetRC" there are only these 3.
"cellFillRC" is something else, and there are some others like cellValueRC, cellBackColRC, ...

What is a numericbar ?

10 posts • Page 1 of 1