キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Setting front panel size

I want to set the initial size of a front panel, i.e. the height and the
width. I know two ways to do this but neither is what I want.
- Via a property node setting "Front Panel Window.Panel/Window Bounds"
sets global bounds and I don't want that since I want to be able to move
and resize the window.
- In VI Properties setting the Minimum Panel Size doesn't allow me to make
the window smaller, which I want.

Does anyone know another way?
Thanks
/Malin
メッセージ1/10
21,443件の閲覧回数
Malin,
Use an ActiveX Property node (Functions> Communication > ActiveX > Property node VI).
Rt-click it and select 'VI Server Class' to VI
Set it to Write.
Choose 'Panel Bounds' under Properties > Front Panel Window.
Create a constant or control to it and enter the numbers you need, each of the 4 cluster elements relates to position of Left, top, right, and bottom.

Good Luck, Doug
0 件の賞賛
メッセージ2/10
21,443件の閲覧回数
I don't understand why using a property node won't work for you. If you use the property node to set the size and position when you start the vi you should still be able to move and resize it while its running.
メッセージ3/10
21,443件の閲覧回数
There is a resize window vi in the Windows Utilities (32-bit) for LabVIEW at http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&74DDE683A1AFF6988625683A000C0D73&cat=034E59A8530E09DF862568900018707A
0 件の賞賛
メッセージ4/10
21,443件の閲覧回数
0 件の賞賛
メッセージ5/10
17,373件の閲覧回数

Doug (CapeFl)naganathas - it seems, like you do not read the question fully, but just partially. He has already written, that he knows about Panel Bounds - why do you dublicate the answer? Just to increase number or replies?

0 件の賞賛
メッセージ6/10
14,993件の閲覧回数

Hi kosist,

 

did you notice the age of this thread and the messages you comment on?

It seems you want to increase your own post counter… 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 件の賞賛
メッセージ7/10
14,984件の閲覧回数

+1, the age of thread I didn't notice. I was just looking for an answer on this question - how to setup window size, but not in run-time, but simply in development mode - and from 4 answers, 2 were completely useless, because people just didn't read through all the question... That's why I was indignant.

0 件の賞賛
メッセージ8/10
14,978件の閲覧回数

@kosist90 wrote:

+1, the age of thread I didn't notice. I was just looking for an answer on this question - how to setup window size, but not in run-time, but simply in development mode - and from 4 answers, 2 were completely useless, because people just didn't read through all the question... That's why I was indignant.


If you were looking through this thread to understand how to setup window size in development mode, you didn't understand his question.  There is NO way to programmatically setup the development mode.  By definition, you'd need to be in runtime for the programmatic change to take place.  If you want to make changes prior to runtime, you'd need to find another solution.

 

You also think they were useless because you didn't understand them.  There's a property node that sets global LabVIEW settings.  That's what the original poster found.  They missed the VI property nodes that would only affect the current VI.  Property nodes would be the solution to their issue.

 

Next time, try being less "indignant" from a position of ignorance.  Your post offered no value even if this was a current thread. 

0 件の賞賛
メッセージ9/10
14,956件の閲覧回数

natasftw wrote:


If you were looking through this thread to understand how to setup window size in development mode, you didn't understand his question.  There is NO way to programmatically setup the development mode.  By definition, you'd need to be in runtime for the programmatic change to take place.  If you want to make changes prior to runtime, you'd need to find another solution.

You also think they were useless because you didn't understand them.  There's a property node that sets global LabVIEW settings.  That's what the original poster found.  They missed the VI property nodes that would only affect the current VI.  Property nodes would be the solution to their issue.

Next time, try being less "indignant" from a position of ignorance.  Your post offered no value even if this was a current thread. 


1.Name of thread doesn't contain information, that poster wanted to find out, how to do it programatically. Then, of course, I've started to read it - even if from the question it is seen, that this is not what I need.

2. I really apologize, but about which "global LabVIEW settings" are you writing? He has wrote property "Front Panel Window.Panel/Window Bounds". This one you can easily get from property node, and reference on VI Server reference, which belongs only to the current VI. Could you, please, send a snapshot about property, which is global in this case? So, poster didn't missed anything.

 

And also, there IS way how to programatically setup development mode properties. Indirect, but it can be used for what I want. Just setup minimum size of the FP, and in development mode reduce size of Front Panel. LabVIEW then will limit size of the Front Panel to the size, which you need. 

And this is what I was looking through the forum - that how can I setup exact size of my FP, to start develop user interface with the size, which I need.

0 件の賞賛
メッセージ10/10
14,948件の閲覧回数