請問大家??強迫front panel定位...

請問各位高手...知不知道如何在labview中強迫front panel每次出現於

螢幕上的位置皆相同啊??![](upload://wh1Jr0invKZTARRL2Hqlvc8do63.gif)

這個問題有兩種情況:

第一是:整個視窗在螢幕的某個位置

![](upload://eHHfGj7SyEBhcNewFSh1ymt33QA.jpeg)

 

第二是:Front pannel裡面的元件,定位。

![](upload://fqmXJM5y5STOI3vzGTimGTv3DWj.jpeg)

 

你要問的是哪一種?

 

我的問題是"整個視窗在螢幕中的位置"![](upload://wh1Jr0invKZTARRL2Hqlvc8do63.gif)

不過我也蠻有興趣知道元件的位置如何定位.....不知道您可以說明一下嗎??![](upload://lTkBiKYocE5J6EqRejuxVFrtSxf.gif)

可以利用Property Node的Front Panel Window:Window Bounds來固定Fornot Panel每次出現的位置.

設定完成圖:

![](upload://6PllbCiDaYzjXLp9VeVR2ggmlf1.jpeg)

設定的方法如下列的分解圖所示:

![](upload://vcnEbQdOLOUFYNSeTYLRB3anHPG.jpeg)

![](upload://fgvxUazSMtoQMsc5mAESYNoGt0X.jpeg)

![](upload://aT6IhRHROemJ8r9tUpTP3U2Hien.jpeg)

 

這樣應該會了吧......:)

做出來的效果請參考看看.

2004-05-11_113425_Penal_Position.vi

謝謝板上前輩的文章,讓我知道原來front pane windows也可以用這種方法程式化的出現所需要的顯示區域。小弟還有一個問題如下: 現在我在front pane 放上一個 waveform graph  想要以程式化的方法調整它的大小(非出現的位置),但是似乎並無法達成(plotarea就可以程式化調整),小弟也查了Help 結果得到如下,不知道也沒有前輩知道該怎樣才可以調整它的大小。 謝謝。

Bounds Property

Property of GObject.

Maximum bounding area of the object specified in terms of width and height in pixels. For a front panel object, this property returns the dimensions of the rectangle enclosing all the visible object components, such as the control, caption, label, graph legends, and so on.

You cannot use this property to change the size of an object. To change the size of an object programmatically, use more specific properties such as Text Width or Plot Area:Size.

[QUOTE=hundream]謝謝板上前輩的文章,讓我知道原來front pane windows也可以用這種方法程式化的出現所需要的顯示區域。小弟還有一個問題如下: 現在我在front pane 放上一個 waveform graph  想要以程式化的方法調整它的大小(非出現的位置),但是似乎並無法達成(plotarea就可以程式化調整),小弟也查了Help 結果得到如下,不知道也沒有前輩知道該怎樣才可以調整它的大小。 謝謝。

Bounds Property

Property of GObject.

Maximum bounding area of the object specified in terms of width and height in pixels. For a front panel object, this property returns the dimensions of the rectangle enclosing all the visible object components, such as the control, caption, label, graph legends, and so on.

You cannot use this property to change the size of an object. To change the size of an object programmatically, use more specific properties such as Text Width or Plot Area:Size.

[/QUOTE]

please see the attached file

dynamic adjust waveform size.vi

謝謝ancle大大的範例,對於property 裡的 bounds  及 plotarea:size 的不同及使用的效果有較深入的了解了。 謝謝~