LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resize a control (i.e. String Control)

LV5.0
NT 4.0

Hello,

I would just like to know if there is a way to:

1) programmatically resize a control inside my VI program.

2) get the width & height of my VI panel.

Right now, im making my panel run into full screen size (size of desktop)
whenever it starts up, which in turns I want my one control to adjust also
it's position and size.

You don't have to answer both question so if you only know one, I would
greatly appreciate it.

TIA
John
0 Kudos
Message 1 of 5
(3,000 Views)
Sorry for being ignoramus... I found a way to set the width and height
(using the properties text size/width/height).

I'm still trying to get the #2.

John

"John Cruz" wrote in message
news:38a851f3@newsgroups.ni.com...
> LV5.0
> NT 4.0
>
> Hello,
>
> I would just like to know if there is a way to:
>
> 1) programmatically resize a control inside my VI program.
>
> 2) get the width & height of my VI panel.
>
> Right now, im making my panel run into full screen size (size of desktop)
> whenever it starts up, which in turns I want my one control to adjust also
> it's position and size.
>
> You don't have to answer both question so if you only know one, I would
> greatly appreciate it.
>
> TIA
> John
>
>
>
0 Kudos
Message 2 of 5
(3,000 Views)
--
-----------------------------------------------------
Click here for Free Video!!
http://www.gohip.com/freevideo/

John Cruz wrote in message
news:38a851f3@newsgroups.ni.com...
> LV5.0
> NT 4.0
>
> Hello,
>
> I would just like to know if there is a way to:
>
> 1) programmatically resize a control inside my VI program.
You have the answered youreself

>
> 2) get the width & height of my VI panel.

Use vi refference and and Property node, select Fron Panel Window>Panel
Bounds
>
> Right now, im making my panel run into full screen size (size of desktop)
> whenever it starts up, which in turns I want my one control to adjust also
> it's position and size.
>
> You don't have to answer both question so if you only know one, I would
> greatly appreciate i
t.
>
> TIA
> John
>
>
>

Esben
0 Kudos
Message 3 of 5
(3,000 Views)
Quick Answer:
"Create\ Attribute Node" by right clicking on control and selecting on the
pull down.
Right Click on Node and "Select Item" Position and Bounds
You can input and output from these nodes.
That should do it.
Brian Wells
Space Power Institute


John Cruz wrote:

> LV5.0
> NT 4.0
>
> Hello,
>
> I would just like to know if there is a way to:
>
> 1) programmatically resize a control inside my VI program.
>
> 2) get the width & height of my VI panel.
>
> Right now, im making my panel run into full screen size (size of desktop)
> whenever it starts up, which in turns I want my one control to adjust also
> it's position and size.
>
> You don't have to answer both question so if you only know one, I would
> greatly appreciate it.
>
> TIA
> John
0 Kudos
Message 4 of 5
(3,000 Views)

Hi,

 

did you try to use VI class property node to set "Front Panel Window"->"Panel Bounds" property?

 

Kind regards.

 

Cla_CUP

NI Tech support

0 Kudos
Message 5 of 5
(2,371 Views)