Re: XForms: Browser resizing

Danny Uy (dau@westworld.com)
Mon, 1 Sep 1997 09:30:43 -0700 (PDT)

To subscribers of the xforms list from Danny Uy <dau@westworld.com> :

>
> To subscribers of the xforms list from "Robert S. Mallozzi" <mallors@crazyhorse.msfc.nasa.gov> :
>
> Hi guys,
>
> I am trying to dynamically resize a browser to exactly fit the
> width of the longest line currently in the browser. I cannot seem
> to get the browser to resize correctly - the width is off by a couple
> pixels, resulting in some of the text being clipped. The program
> below shows the effect.
>

I don't think you'd need to check the number of chars in the line. Simply
check for the return value of fl_get_string_width(). A greater number of
characters does not necessarily mean a longer string width.

Regards,
Danny Uy
dau@westworld.com
_________________________________________________
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/