[Gambas-user] Scaling GUI

Fabien Bodard gambas.fr at ...626...
Wed Sep 16 15:30:56 CEST 2009


see the gb.chart source

Le 16 septembre 2009 14:15, Benoît Minisini
<gambas at ...1...> a écrit :
>> No, I still can't figure out, how to have scaled an item at the same time
>>  in two directions. I've managed to have them scaled whether horizontally
>>  or vertically. From the point of mathematics that makes no sense.
>
> But this is a GUI designer, not mathematics. :-)
>
>>  Would it
>>  be possible to count the position of each item from the upper left edge of
>>  the form, and to work with vectors? To enlarge on shrink them according to
>>  the proportional change in form's width and height.
>
> You must do that by hand.
>
> You must register somewhere all coordinates of all controls when the form is
> opened, and then change them each time the form receives a Resize event.
>
> Beware that Width and Height should not be scaled the same way as X and Y.
>
> Regards,
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list