LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set height of XControl?

Solved!
Go to solution

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! 

 

0 Kudos
Message 1 of 9
(4,552 Views)

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 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 9
(4,541 Views)

 

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~~ 

 

 

Message 3 of 9
(4,531 Views)

you are right!

I am trying to resize the instance of the XControl on my front panel dynamically.

Message 4 of 9
(4,528 Views)

Do you try to resize it because it does not match to your current layout or should it be resized several times?

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 5 of 9
(4,524 Views)
Yes,the height of XControl is determined by information from DB.
Message 6 of 9
(4,521 Views)
Solution
Accepted by wxjshr

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 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 7 of 9
(4,511 Views)

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!

 

0 Kudos
Message 8 of 9
(4,507 Views)

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 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 9 of 9
(4,493 Views)