
Same size whatevever window manager
One month ago i have made one gambas 3 application or xfce. I tryed this application on another computer and all form sizes and fonts are bigger than original. Why this problem?
I tested my application on different window managers and result is :
openbox :
x= 474
y= 417
width= 83
Height= 125
icewm:
x= 474
y= 417
width= 83
Height= 125
xfce : (original window manager)
x= 406
y= 357
width= 71
Height= 107
enligthment :
x= 474
y= 417
width= 83
Height= 125
lxde :
x= 474
y= 417
width= 83
Height= 125
JWD :
x= 474
y= 417
width= 83
Height= 125
To find solution i saw inside fmain.form source code gambas file and, i have found size of my form with decimal number :
{ Mypicture PictureBox
MoveScaled(67.6667,59.5,11.8333,17.8333)
Picture = Picture["monimage.png"]
Stretch = True
}
It's vector size and not pixels size. Every Form inside gambas has a SCALED property (True y default). When you put this property to FALSE, form is the same in every window managers. great!
But for fonts, you have the same problem, you need to choose in property font of your widget :
Uncheck RELATIVE like this, and you will solve your problem:

You need to do this for all your widget and Form inside your project.
Thanks or reading.