# To subscribers of the xforms list from "j.w.c.a. lokin" <lokin@signaal.nl> :
Steve Lamont wrote:
>
> > The program below illustrates (some of) the peculiarities of
> > fl_get_folder_area().
> >
> > 1) the behavior for all tabs is wrong although it differs for the
> > first and later calls: For the first, h seems to be too large,
> > and y seems ok, for later calls h seems ok and y seems too large.
>
> Yes, methinks this is a bug. The first call returns the dimensions
> and origin of the *entire* Folder area -- without tabs. Later calls
> return the dimensions and origin after being offset by the tabs.
>
> > 2) closer inspection reveals that the claim that x and y are
> > relative to the top level form are not true, they appears
> > approx. twice as large.
>
> As far as I can tell by close inspection with a screen grabbed image,
> they are correct. In your example, I get
>
> x 13 y 40 w 354 h 87
>
> where the Folder was created at x = 10, y = 10. Offsetting 3 pixels
> for the box, that puts us at x = 13, y = 13. Offsetting 27 pixels for
> the tab puts us at y = 40.
You're right, I've mixed up my forms, hence the confusion.
> A workaround for the bogus area returned by the first call is to
> <stuff omitted>
> I hope this makes some shred of sense.
Sure, thanks a lot. I've solved my problem by rearranging my tabs, so
that I don't need the folder area y in the first tab.
>
> spl
-- -+- Jan Willem Lokin -+- _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuhs.mil or see http://bob.usuhs.mil/mailserv/xforms.html XForms Home Page: http://world.std.com/~xforms List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Mon Apr 10 2000 - 03:16:22 EDT