How to dynamically change column width of GUI Table

How to dynamically change column width of GUI Table

KSugai
Not applicable
17 Views
1 Reply
Message 1 of 2

How to dynamically change column width of GUI Table

KSugai
Not applicable

[ FlexSim 23.0.11 ]

I want to change column width of a GUI table when a string that is too long to fit in a cell is written to the table.

cellwidth.jpg

I added subnodes to the cellwidth attribute, and I am changing the value of them under "VIEW:/active" during simulation. However, they are not reflected in the displayed table.

Also, There is no change even if I run "repaintall()" command.

If there is a way to dynamically change column width of GUI Table, please let me know.


0 Likes
Accepted solutions (1)
18 Views
1 Reply
Reply (1)
Message 2 of 2

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You should use repaintview where the view is the table view:

eg:

treenode view=node("VIEW:/active/GUI 12651353864/table2");  // path to the active table view in a test model.
cellwidth(view).subnodes[3].value=20;  //width of column 3
repaintview(view);


0 Likes