Re: XForms: digital display

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 12 Nov 97 05:52:59 PST

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

> I am in the midst of creating an application where i would
> like a digital type display. I wanted to get some opinions on the
> preffered method of doing this. The display would be an active
> counter type which will keep track of time. Would it be more
> efficient to create 10 pixmaps and change each of those pixmaps once
> a second or should i use a text box with a digital looking font (can
> i do that?). Any opinions or tips would be greatly appreciated.

It depends upon how large you want the digits.

If they're to be larger than the maximum size XForms supplies, then a
Pixmap is clearly the way to go. XForms uses XCopyArea() to BITBLT
the Pixmap to the form and that's pretty fast.

The most "digital" looking standard XForms font is probably Courier if
you go that route. You can also, with some small amount of effort,
use other X fonts. Refer to the section on "Label Attributes" (3.11.3
in the 0.87.5 manual) for a discussion on how to change fonts.

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/