Jump to content

Programmatically resize XControl bounds during run-time?


Recommended Posts

I want to programmatically resize an XControl during run-time.

 

The XControl behaves like an array, so when an element is added or removed, I want the bounds of the XControl to resize dynamically. This will allow me to do some dynamic arrangement of controls based on the XControl's new height and width. I get error 1148 ("read only property value") when trying to set the Front Panel Bounds inside the XControl, using the Facade VI reference.

 

I've gotten around this problem by calculating the "visible height" of the XControl and returning that value as a property. But this feels like a very hackish way of solving the problem.

 

Any ideas?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.