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!
Table Cell with progress bar
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Table Cell with progress bar
Yes, there is.
You set it like this:
change value e.g.:
You set it like this:
Code: Select all
setValue("table", "cellWidgetRC", 2, "#2", "Bar", makeDynAnytype(0.0, 100.0));
Code: Select all
for (int i = 0; i- zscriven
- Posts:21
- Joined: Tue Jul 05, 2016 11:03 pm
Re: Table Cell with progress bar
Thank you Martin!
- AGorbatykh
- Posts:59
- Joined: Thu Dec 17, 2015 1:01 pm
Re: Table Cell with progress bar
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
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.
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
Good, it's little bit better.
Thanks Rudi!
Thanks Rudi!
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Table Cell with progress bar
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
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
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?
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
For "cellWidgetRC" there are only these 3.
"cellFillRC" is something else, and there are some others like cellValueRC, cellBackColRC, ...
What is a numericbar ?
"cellFillRC" is something else, and there are some others like cellValueRC, cellBackColRC, ...
What is a numericbar ?