01-12-2017 04:08 PM
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
Solved! Go to Solution.
01-13-2017 01:15 AM
Hi,
you've made two different statements...
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
@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" .
01-13-2017 03:57 AM
So the measurement units are pixels
Are they always ? Even if you use scaling ?
01-16-2017 08:51 AM
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?