Re: XForms: small bug in fdesign (browser fonts and size not shown)

Kevin L McWhirter (klmcw@crl.com)
Thu, 31 Jul 1997 00:24:29 -0700

To subscribers of the xforms list from Kevin L McWhirter <klmcw@crl.com> :

--------------1A8825AD35353E50B64402C4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Dick Middleton wrote:

> To subscribers of the xforms list from Dick Middleton
> <dick@sqf.hp.com> :
>
> > To subscribers of the xforms list from Tristan Savatier
> <tristan@mpegtv.com> :
>
> > For browser objects, fdesign does not reflects the
> > font and size selected in the Attributes.
>
> > The Text "Browser Line 1, Browser Line 2 etc..."
> > is always displayed with the same font.
>
> > Using fdesign 0.86
>
> Yes it's not intuitive is it. The attributes in fdesign refer to the
> label
> not to the contents. There are specific calls to change the browser
> contents
> font attributes. I don't have my manual handy so I can be more
> specific.
>
> Dick
>
> --
>
> dick@sqf.hp.com

An example of the new calls (the ones I use in fXPlayMidi anyway :) are:

fl_set_browser_fontsize(albumBrp(App), FL_MEDIUM_SIZE);
fl_set_browser_fontstyle(albumBrp(App), FL_FIXED_STYLE);

The first parameter is a pointer to the Browser object, the second is
the appropriate style.

Hope that helps!

--
Kevin L. McWhirter, Programmer | klmcw@crl.com | /cgi-bin/exit-to?http://www.crl.com/~klmcw/
finger $USER | grep `echo putz | tr utpz earl` | sed -n '1,1p' | \
  sed 's/.*: \(.*\)/\1/' && echo '0H ?* #(!725 4^ 48*4!' | tr \
  '0-9~`!@#$%^&*()_+}{' a-z  | dd conv=swab  2> /dev/null

--------------1A8825AD35353E50B64402C4 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Dick Middleton wrote:

To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

>  To subscribers of the xforms list from Tristan Savatier <tristan@mpegtv.com> :

>  For browser objects, fdesign does not reflects the
>  font and size selected in the Attributes.

>  The Text "Browser Line 1, Browser Line 2 etc..."
>  is always displayed with the same font.

>  Using fdesign 0.86

Yes it's not intuitive is it.  The attributes in fdesign refer to the label
not to the contents.  There are specific calls to change the browser contents
font attributes.  I don't have my manual handy so I can be more specific.

Dick

--

dick@sqf.hp.com

An example of the new calls (the ones I use in fXPlayMidi anyway :) are:

fl_set_browser_fontsize(albumBrp(App), FL_MEDIUM_SIZE);
fl_set_browser_fontstyle(albumBrp(App), FL_FIXED_STYLE);

The first parameter is a pointer to the Browser object, the second is the appropriate style.

Hope that helps!

-- 
Kevin L. McWhirter, Programmer | klmcw@crl.com | /cgi-bin/exit-to?http://www.crl.com/~klmcw/
finger $USER | grep `echo putz | tr utpz earl` | sed -n '1,1p' | \
  sed 's/.*: \(.*\)/\1/' && echo '0H ?* #(!725 4^ 48*4!' | tr \
  '0-9~`!@#$%^&*()_+}{' a-z  | dd conv=swab  2> /dev/null
  --------------1A8825AD35353E50B64402C4-- _________________________________________________ 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/