Mike Le Posted March 28, 2013 Report Share Posted March 28, 2013 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? Quote Link to comment
JackDunaway Posted March 29, 2013 Report Share Posted March 29, 2013 Hey Mike, this weekend project i worked on a while ago may give you some ideas -- https://bitly.com/CognoscentUI Quote Link to comment
Ton Plomp Posted March 30, 2013 Report Share Posted March 30, 2013 You can resize the XControl by controlling it's bounds. Do not use the Facade VI ref, but the container ref availalbe in the facade VI: Ton 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.