LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XControl resizing

What I want to do is to resize XControl similarily to PlotAreaSize property of a Graph. I have created similar property to my XControl and I get everything on the XControl front panel resized correctly. However I don't know how to resize the box bounding the XControl on the front panels on which the XControl is placed. Everything on the Facade front panel is correctly resized, but since the bounding box is not resized, part of enlarged facade front panel becomes hidden.

A logical sounding solution would be setting the FP.PanelBounds property of either VI class or Facade VI class from the Facade VI, but neither of these have any effect on anything at all. What can these properties be used for if not resizing the panel?

I attach a clear example code illustrating the problem.

p.s. LV crashes every time I tried to make a "Preserve Hierarchy" source distribution of the project. So I jsut zipped the folder containg the files.
--
Tomi Maila
Message 1 of 2
(3,494 Views)

The solution is to use the refnum in the container state.

 

Go to the event case ‘Display state change’ and use the ‘refnum’ from the ‘container state’.

Connect the ‘refnum’ to the property ‘Xcontrol -> Container bounds -> all elements’

And connect ‘panel size after resize’ to this property.

 

see attachment

Message 2 of 2
(3,411 Views)