Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
_gb3.pngFORM WINDOW - Same size whatever WM

scaledgb3.jpg

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:

scaled2gb3.jpg

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

Creation date : 12/06/2020 @ 07:33
Last update : 12/06/2020 @ 07:33
Category : FORM WINDOW
Page read 2306 times


Print the article Print the article


react.gifReactions to this article


Reaction #1 

by valaquarus 12/06/2020 @ 15:06

 Excellent, car très problématique lors du portage de nos chers petits programmes sur différentes machines et différents bureaux.Philippee

QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^