[Gambas-user] GAMBAS IDE font/form size versus runtime font/form size

Benoît Minisini gambas at ...1...
Tue Jun 23 00:29:45 CEST 2009


> Awesome, that information proved accurate and I have a much better handle
> on what exactly is going on now. I agree there is probably no perfect
> solution due to a number of variables, but I've decided to use the QT GUI
> instead of GTK for the time being and to keep the forms/controls a fixed
> size (non scaled). My IDE form/controls now match my runtime form/controls
> to the pixel. My particular application is highly dependent on controls and
> text being in specific positions and at specific sizes, so I'll have to
> sacrifice users' possible desires to change font/form sizes based on their
> individual system configurations.
>
> For those who need exact instructions on how to switch a GAMBAS app from
> using GTK (GNOME) to QT (KDE), here they are:
>
> 1) Open GAMBAS
> 2) Open your app/project
> 3) Click Project on the main menu at the top
> 4) Click Properties
> 5) Click the Components tab
> 6) Uncheck "gb.gui"
> 7) Check "gb.qt" and "gb.qt.ext"
> 8) Click the OK button
> 9) Save your app/project
>
> If anyone knows of an easier or more intelligent way to do this please tell
> for the sake of others.
>
> On a related note, it seems there is no way to stop the font sizes from
> changing in a running GAMBAS app due to the font sizes specified in the
> desktop environment's font settings. For example, if a GAMBAS app is using
> GTK and the form's Scaled property is set to False, the form and control
> sizes will remain fixed but the font sizes will vary according to GNOME's
> font size settings. There appears to be no way to have GAMBAS force a
> specific font size and ignore the desktop environment's font preferences.
> Is this the case? If so it might be a subject of future development. It
> could be implemented as an additional control property, at the form level,
> or globally for the app/project.
>
> -----
> Kevin Fishburne, Eight Virtues
> www:  http://sales.eightvirtues.com http://sales.eightvirtues.com
> e-mail:  mailto:sales at ...1887... sales at ...1887...
> phone: (770) 853-6271

Set Application.Font at startup, and you will force your application to use 
the specified font as default.

Regards,

-- 
Benoît




More information about the User mailing list