Good morning.
A question about the resize.
I am developing my application with 1920x1200 resolution.
I want to open my frame with the largest possible size in a 1024x768 resolution mode.
It seems to me that powerbuilder has its Powerbuilder Unit.
How can I convert 1024x768 in width and hight?
Thanks for the reply
Gimmy
Long ll_height, ll_width
Environment le_env
CONSTANT Integer HEIGHT_OFFSET = 800
CONSTANT Integer WIDTH_OFFSET = 100
GetEnvironment(le_env)
ll_height = le_env.screenheight
ll_width = le_env.screenwidth
ll_width = PixelstoUnits(ll_width, XPixelsToUnits!)
ll_height = PixelstoUnits(ll_height, XPixelsToUnits!)
this.height = ll_height - HEIGHT_OFFSET //from open or some window event - offset is optional
this.width = ll_width - WIDTH_OFFSET //from open or some window event - offset is optional