[Gambas-user] Huge Forms, when moving gambas1 projects to gambas2
Benoit Minisini
gambas at ...1...
Sat Oct 15 00:01:45 CEST 2005
On Friday 14 October 2005 23:20, Daniel Campos wrote:
> Hi:
>
> The problem is that now the IDE is using MoveRelative() and
> ResizeRelative(), which deppends on the font size. Future Gambas
> versions (in the new IDE, I think), will have the option to select
> fixed or relative size for forms and controls.
>
> Anyway the "Relative" option is quite interesting, as the user always
> find the same application aspect even if they use little or big fonts
> (for example, due to eye problems), so you can satisfy more costumers
> without writting any line of code :-)
>
> Regards,
>
> D. Campos
>
> 2005/10/14, Charlie Reinl <Karl.Reinl at ...9...>:
> > Salut,
> >
> > I do not know if the answer is given on the list.
> > But me also, I'V got huge Forms (about 7 times as in gambas1) when I
> > copied project from gambas1 to gambas2.
> >
> > The answer is the 'Snap to grid' pixels size in Properties/Properties.
> > Befor moving gambas1 projects to gambas2 set it to 7, so the problem
> > disapear. If you don'T have no more a gambas1 on your box, you can do it
> > in the .project file . You have to change the value of 'Snap'.
> >
> > I think it is a bug in gambas2. The grid size is not read when change
> > from 'Move' to 'MoveScaled' .
> >
> > Hope that helps all who ran into that problem.
> >
> > Amicalment
> > Charlie
> >
> >
When you open a Gambas 1 project with Gambas 2, the IDE does the following:
- It takes the absolute coordinates of each control.
- It divides it by the value specified in 'Snap to grid'.
- It multiplies the result by the value of Desktop.Scale, which is
Font.Height("X") / 2
I admit it is a little rough, but this was done for an experimental feature,
that seems to be useful now.
Anyway, I'm currently thinking about changing the way Gambas store a project
inside a directory, so I will have to make a true Gambas 1 -> Gambas 2
project converter.
Regards,
--
Benoit Minisini
More information about the User
mailing list