Re: Browser attributes

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 12 Feb 97 12:49:58 PST

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

> Is there a browser attribute (or a function i can call) to make a browser
> automatically scroll down to reveal the last line added every time i use
> fl_add_browser_line()?

Don't think so. You can emulate what you wish to do by

lines = fl_get_browser_maxline( browser_obj );
screen_lines = fl_get_browser_screelines( browser_obj );
topline = lines - screen_lines;

if ( topline > 0 )
fl_set_browser_topline( browser_obj, topline );

Sort of a kluge but it should work.

There may have an Off By One error though -- I haven't tested it.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/