[Gambas-user] First look at Gambas 3

Benoît Minisini gambas at ...1...
Sat Dec 4 17:21:34 CET 2010


> Benoit,
> The output from Valgrind is attached. I added the leak-check option to
> give you more information. 

Thanks, but there is no memory access error reported in your valgrind log. Can 
you check that you ran it in the same context?

> The application was just automatically
> generated by Gambas 3 with Fform to which I added 1 menu item with no
> action code. The same bug appears in an app I ported from gambas2.
> 
> On unrelated matters re: Porting from Gambas 2 to Gambas 3. I have the
> following problems.
> 1. The color options offered in Gambas 3 are different to Gambas 2. All
> my pale blue forms are now pink.

Can you give me a more precise example?

> 2. I used font Ubuntu +1 for QT text boxes in G2. In Gambas 3 the same
> font appears huge. I had to change it to ubuntu -1.  In a Frame control
> the font is always bold in G3 but in G2 I could set it to 'normal'
> without problem.

All font size "+1,-1,+2..." are relative to the default font size, which may 
be not the same between Gambas 2 (that uses Qt3) and Gambas 3 (that uses Qt4). 
To check that, you must configure your Qt library with the qtconfig program. 
The way to install and run it depends on the distribution.

> 3. All the forms copied from G2 were reduced in size. This was probably
> caused by the Desktop.Height which I use to format forms based on video
> resolution. 

No. The form and controls dimensions are proportional to the default font 
height. The multiplication factor has changed in Gambas 3 and is lower. If you 
need absolute dimensions in a form, set the Form.Scaled property to False in 
the IDE.

> My system is 1680*1050 resolution and G2 reports
> Desktop.height as 1050. G3 reports desktop height as 1002! The desktop
> width is reported correctly. Have you changed the method of measuring
> desktop.height?

No. Desktop.Width and Desktop.Height actually returns the screen size, unless 
you use the gb.desktop component. Then they return the usable screen size, 
which is the screen size minus the desktop panels dimensions.

I admit that keeping the same names is a stupid idea. Maybe I will change the 
gb.desktop component, and use other names.

Regards,

-- 
Benoît Minisini




More information about the User mailing list