06-13-2018 04:21 AM
Hi,
I am using an XControl and I would like to change its size when the size of the pane it is on changes. Its property node "Bounds" is read-only, so there is no way of rescaling that way.
I read somewhere that rescaling could be achieved through the facade VI. I added the event case "Pane" (as you can see below) however the event is not fired when I run a VI containing the XControl - I think it is not the pane the XControl is placed on which referes to this event case.
How could I achieve rescaling of the XControl?
Best
volfi
06-14-2018 02:36 PM
You don't need to adjust the pane (it's size is set outside the XControl code). You need to adjust the sizes/positions of the objects on the FP of the facade VI.
Here are 3 possible ways to handle it: