Re: XForms: File selector font?

Steve Lamont (spl@szechuan.ucsd.edu)
Mon, 19 May 97 07:13:55 PDT

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

> While we're on the subject of the file selector...
>
> Has anybody been able to successfully change the file selector font?
> I had hoped that fl_set_goodies_font() would do the trick but it does
> not (at least on v0.86 running on Linux Elf).

The innards of the File Selector goodie are almost all available and
configurable. Here're a couple of little routines I use to set things
up the way I like them:

static void setup_goodies( void )

{

FD_FSELECTOR *selector;

/*
* Random 'goodies' setups.
*/

fl_set_goodies_font( FL_BOLDITALIC_STYLE, FL_LARGE_SIZE );

selector = fl_get_fselector_fdstruct();
fl_set_browser_fontsize( selector->browser, FL_MEDIUM_SIZE );
fl_set_browser_fontstyle( selector->browser, FL_FIXEDBOLD_STYLE );

setup_selector_object( selector->input );
setup_selector_object( selector->prompt );
setup_selector_object( selector->resbutt );
setup_selector_object( selector->patbutt );
setup_selector_object( selector->patlabel );
setup_selector_object( selector->dirbutt );
setup_selector_object( selector->dirlabel );
setup_selector_object( selector->cancel );
setup_selector_object( selector->ready );

}

static void setup_selector_object( FL_OBJECT *obj )

{

fl_set_object_lsize( obj, FL_MEDIUM_SIZE );
fl_set_object_lstyle( obj, FL_BOLD_STYLE );

}

Refer to the manual for discussion of fl_get_fselector_fdstruct().

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/