Re: XForms: Complex browser

From: Steve Lamont (spl@szechuan.ucsd.edu)
Date: Fri Mar 10 2000 - 09:50:23 EST

  • Next message: Steve Lamont: "Re: XForms: quitting a program"

    # To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

    > I need Your help! I have to build an object containing two synchronized
    > browsers. I.e. One browser (without vscrollbar) for "From:" field and
    > the other (with vscrollbar) for "Subject" field in MUA. Of course both
    > FL_HOLD_BROWSER. I've tried to do it through callbacks - using
    > fl_get_browser_topline()/fl_set_browser_topline() and
    > fl_get_browser_line()/fl_select_browser_line() but failed - browsers was
    > sync. only when user selected line in one of browsers....

    This is something of a hack but try:

            fl_set_idle_callback( browser_update, fd_try );
            fl_set_idle_delta( 0 );
            
            [...]
        
        int browser_update( XEvent *fake, void *data )
        
        {
        
            FD_try *fd_try = ( FD_try *) data;
        
            fl_set_browser_topline( fd_try->worker,
                                    fl_get_browser_topline( fd_try->master ) );
        
            return 0;
        
        }
        
    I won't guarantee that it'd work in all cases, but it worked in the
    little test case I cobbled together.

                                                            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 : Fri Mar 10 2000 - 09:53:40 EST