Re: XForms: problem with tabfolder->form->x,y

From: Steve Lamont (spl@ncmir.ucsd.edu)
Date: Tue Nov 28 2000 - 16:03:11 EST

  • Next message: Angus Leeming: "Re: XForms: problem with tabfolder->form->x,y"

    # To subscribers of the xforms list from Steve Lamont <spl@ncmir.ucsd.edu> :

    > Try this.

    Here's a workaround:

                FL_Coord folder_x;
                FL_Coord folder_y;
                FL_Coord folder_w;
                FL_Coord folder_h;

                fl_set_object_label(ob, "@8->");

                fl_get_folder_area( popup->folder_main,
                                    &folder_x, &folder_y,
                                    &folder_w, &folder_h );

                x = popup->form_popup->x + folder_x + folder1->button_form->x;
                y = popup->form_popup->y + folder_y + folder1->button_form->y +
                    folder1->button_form->h;

                fl_set_form_position(browserform->browserform, x, y);
                fl_show_form(browserform->browserform,
                             FL_PLACE_POSITION, FL_NOBORDER, "");

    fl_get_folder_area() gets the position of the Folder object relative
    to the origin of the parent form. Adding that to the origin of the
    form itself gets you the origin of the Folder object relative to the
    root window.

                                                            spl
    _________________________________________________
    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 : Tue Nov 28 2000 - 16:08:11 EST