LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Canvas height and width size TO resolution

Solved!
Go to solution

Hello,
I positioned a canvas control at size of 600X400 [Height X Width].
I would like to know, what is the measurement units of thos parameters?

Is it possible to know the resolution only of the canvas board?
How many pixels there are in 400 width and how many in 600 height?
I repeat that the following dimensions (600X400) are numbers that I have entered the fields of the "Size/Position" .

Thank you very much for your help!
Eliran

0 Kudos
Message 1 of 4
(3,279 Views)
Solution
Accepted by EliranMar3005

Hi,

you've made two different statements...Smiley Wink

Actually you can set (and retrieve) all four parameters, size (height and width in pixels) and position (top and left in pixels specifying the vertical/horizontal offset of the control relative to the panel origin).

You can get and set these control attributes with SetCtrlAttribute and GetCtrlAttribute.

 

So the measurement units are pixels Smiley Happy


@EliranMar3005 wrote:

Hello,
I positioned a canvas control at size of 600X400 [Height X Width].

...

I repeat that the following dimensions (600X400) are numbers that I have entered the fields of the "Size/Position" .

Message 2 of 4
(3,247 Views)

So the measurement units are pixels


Are they always ? Even if you use scaling ?

0 Kudos
Message 3 of 4
(3,238 Views)

Hi gdargaud,

 

As far as I know the dimensions of a window will always be in pixels. What kind of scaling are you referring to? 

Austin
Staff Software Engineer
NI
0 Kudos
Message 4 of 4
(3,196 Views)