The Controls will have the same dimensions regardless of the resolution, at least in pixels.
You can however resize the controls dependin on the resoluton your in by doing:
etc.Code:control.left = 100 control.top = 0 control.width = 1000 control.height = 2000
You can get the screen resoluton in piels by:
Not sure how to detect whether the screen res was changed or not though.Code:Screen.Width / Screen.TwipsPerPixelX Screen.Height / Screen.TwipsPerPixelY
presumably you could multiply the screen resolution by a percentage to make the control always appear a certain percentage of the screen.
Or if you always wanted a control to be a inch long you would set its width equal to: 1440
as the lengths are measured in twips and there are 1440 twis in an inch.
Groovydaz.


Reply With Quote