Re: XForms: Howto update active folder x,y coords?

From: Angus Leeming (a.leeming@ic.ac.uk)
Date: Thu Oct 03 2002 - 10:56:27 EDT

  • Next message: Angus Leeming: "Re: XForms: Howto update active folder x,y coords?"

    Sorry for the noise other the last 24 hours.

    This last mail is to say that I've "cured" my problems with
    tabfolders and tooltips. See attached for the workarounds.

    Note, however, the comments in tabfolder_prehandler. Something
    weird is happening somewhere.

    Best regards,
    Angus

    On Thursday 03 October 2002 1:56 pm, Angus Leeming wrote:
    > # To subscribers of the xforms list from Angus Leeming
    > <a.leeming@ic.ac.uk> :
    >
    > Moving a window containing an xforms dialog with the mouse
    > does not update the form->[x,y] vars of any tabfolders. One
    > result is that tooltips to objects on a tabfolder are still
    > displayed at their original location.
    >
    > Looking at the xforms sources, it seems like the appropriate
    > thing to do is:
    >
    > struct Dialog {
    > FL_FORM * form;
    > FL_OBJECT * tabfolder;
    > };
    > Dialog * dialog_; // initialised elsewhere
    >
    > void resetTabfolderPosition() {
    > FL_FORM * active = fl_get_active_folder(dialog_->tabfolder);
    > if (active)
    > fl_prepare_form_window(active, 0, 0, "Folder");
    > }
    >
    > My problem is that I'm X-ignorant and don't know how to get
    > notification that the window has been moved (and that this
    > movement has stopped).
    >
    > Can someone put me out of my misery?
    >
    > Angus



    _________________________________________________
    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 : Thu Oct 03 2002 - 10:56:54 EDT