[Gambas-user] GTK problems

Benoît Minisini gambas at ...1...
Wed Mar 11 19:10:57 CET 2009


> Hi all,
>
> I am developing a student management system. Up till now I have been
> using QT. But in reading the licensing decided I need to switch to GTK
> components.  But I have found the following problems.
>
> 1. Scaling and item placing will change when the form is scaled and when
> it is not scaled it appears a little different than in the development
> environment. (changing the form not to scale to size helps but the
> appearance is different)

The development environment uses QT. So running your project with GTK+ may 
displays forms differently. 

Forms are scaled by using Desktop.Scale, which is proportional to the default 
font height. Alas, QT and GTK+ do not return the same height for the same font 
family & size!

If (Scaled) is not set, then control dimension use absolute pixel size, and so 
you should get the same control dimensions. If you don't, please provide some 
screenshot.

>
> 2. When controls are disabled they do not retain their background
> colour. Regardless of weather the background is set or not.
>

I will fix that in a next release.

> 3. Controls do not inherit the parents background and foreground font
> etc correctly. ( need to set each control manually)

Can you give me examples?

>
> 4. Menu items do not work when form is loaded in a workspace.

Can you give more details, and (better) a project example that can show me the 
problem?

Regards,

-- 
Benoît





More information about the User mailing list