[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XForms] Movement of widgets on a form when resized

From: Sian Mountbatten
Subject: Re: [XForms] Movement of widgets on a form when resized
Date: Thu, 16 Feb 2012 19:29:23 +0000

On Thu, 16 Feb 2012 13:45:37 +0100
Jens Thoms Toerring <address@hidden> wrote:

> Hi Sian,
> On Thu, Feb 16, 2012 at 11:09:50AM +0000, Sian Mountbatten wrote:
> > How is it possible to stop the buttons on a form from changing
> You have to set a "gravity" for the objects that you want stay
> put. The function you need for that is fl_set_object_gravity()
> which allows to tell the program if the upper left hand and
> the lower right hand corner of an object are to be fixed rela-
> tiv to the sides of the forms. E.g. if you call
>   fl_set_object_gravity( obj, FL_NorthWest, FL_NorthWest );
> then the object will stay fixed relative to the top left hand
> corner of the form it belongs to (or the group it may belong
> to).
Thank you very much for bringing this to my attention. Your
reply has helped me solve the problem. Again, two minds are
better than one. Now my file viewer is ready for uploading to
my web-site <www.poenikatu.co.uk>.

<Beginning of advert>
Incidentally, I am using the programming language Algol 68 to
interface with the Xforms library. I have implemented an Algol
68 binding for the library which means that Algol 68 programs
do not use forms.h. I also use a literate programming system
which is especially adapted for Algol 68. It is called Web 68
and is also on my web-site.
<End of advert>

> The whole thing is described in the documentation in chapter
> 4 "Doing Interaction", see e.g.
>   http://xforms-toolkit.org/doc/xforms_6.html
> There's also a demo program, 'grav', that shows some of the
> effects the gravity setting for an object has (and also how
> this might influence resizing of the object - if you e.g.
> fix the objects upper left hand corner to the corresponging
> corner of the form and its lower right hand corner to the
> oppostite corner of the form it must grow when you enlarge
> the form etc.).
>                         Best regards, Jens
The grav program was also helpful.

Sian Mountbatten
Algol 68 specialist

reply via email to

[Prev in Thread] Current Thread [Next in Thread]