05-13-2009 01:11 AM
Hello,
I want to set the height of xcontrol,but there is a problem when I try to set it by property node of xcontrol container bounds height. Top and bottom of my control show incomplete.
So,how to set the height of XControl correctly?
Thank you!
Solved! Go to Solution.
05-13-2009 02:15 AM
The height of an XControl is defined by the visible part of the front panel of the facade.... so this might be the simplest approach for you.
As i take your post, you are trying to resize the instance of the XControl on your front panel. Is that correct? Could you post an examplecode?
hope this helps,
Norbert
05-13-2009 03:07 AM
Thanks your help ,Norbert.
I can't understand 'the visible part of front panel of facade' that you hava said.Could I have your example about setting XControl height?
I am sorry a problem occurred when I upload my example...
wxjshr~~
05-13-2009 03:11 AM
you are right!
I am trying to resize the instance of the XControl on my front panel dynamically.
05-13-2009 03:36 AM
Do you try to resize it because it does not match to your current layout or should it be resized several times?
Norbert
05-13-2009 03:42 AM
05-13-2009 03:56 AM
Attached you can find a small example how to get it to work. Please note that i limit the smallest value to 40 because lower heights lead to graphical issues when resizing to larger values again.
So you can see that there are limitations to resizing of XControls depending on the facade of the XControl.
hope this helps,
Norbert
05-13-2009 04:34 AM
Thank you very much ,Norbert!
Lower heights lead to graphical issues when resizing to larger values again !It is precisely this kind of problem I have encountered!
05-13-2009 05:49 AM
If you have to make the controller smaller than the current version is able without creating the graphical issue, you have to change the facade.vi to solve this. Please note that this is a modification to the XControl and should be done by the person who created the XControl.
Norbert