[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XForms] Form size changes?
From: |
hohe72 |
Subject: |
Re: [XForms] Form size changes? |
Date: |
Sun, 19 Oct 2014 16:16:37 +0200 |
Marisa Giancarla <address@hidden> wrote (Sat, 18 Oct 2014 19:17:28
-0700):
> I first created my app back in the 90's when screens were smaller and
> now on larger screens the app only uses a fraction of the space and
> does not allow resizing. Is there any way to change this and
> preferably allow resizing by the user? Please help!
>
> Marisa
// design
form = fl_bgn_form ( FL_FLAT_BOX, 320,120 );
input = fl_add_input ( FL_MULTILINE_INPUT, 0, 0, 320,95, NULL);
cancel_btn = fl_add_button( FL_NORMAL_BUTTON, 160,96,80,24,"CANCEL");
ok_btn = fl_add_button( FL_NORMAL_BUTTON, 240,96, 80,24,"OK");
fl_end_form ();
<snip>
//sizers
fl_set_object_resize(input, FL_RESIZE_ALL );
fl_set_object_resize(cancel_btn,FL_RESIZE_NONE);
fl_set_object_resize(ok_btn, FL_RESIZE_NONE);
fl_set_object_gravity(input, FL_NorthWest,FL_SouthEast);
fl_set_object_gravity(cancel_btn,FL_SouthEast,FL_SouthEast);
fl_set_object_gravity(ok_btn, FL_SouthEast,FL_SouthEast);
----
Sizer is the term used by Wx, layout-manager at Java. So the
sizers-called part will do the layout. However, the order of
declaration also matters, for instance. Running sample attached.
Holger
> ----
> LinkedIn: http://www.linkedin.com/in/marisagiancarla
> Opensim City: https://OpensimCity.org
> Opensim Radio: http://radio.opensimcity.org:8188
> Empire Directory: https://EmpireDirectory.net
> Lugdunon City: https://LugdunonCity.org
> IndieDB: http://www.indiedb.com/company/pocketfiction-pocketgames4me
aeiv_fl_edit.c
Description: Text Data