Re: XForms: Pixmaps being slow...

Matthew Flax (flatmax@cse.unsw.EDU.AU)
Sat, 8 Nov 1997 13:21:49 +1100 (EST)

To subscribers of the xforms list from Matthew Flax <flatmax@cse.unsw.EDU.AU> :

On Thu, 6 Nov 1997, Jeff Pierce wrote:

> To subscribers of the xforms list from Jeff Pierce <> :
> Jathan W. Manley wrote:
> >
> > To subscribers of the xforms list from "Jathan W. Manley" <> :
> >
> > Steve,
> > Thanks for the input. Could I convert my xpm's to Pixmaps with
> > fl_create_from pixmapdata(...)
> > then use fl_set_pixmapbutton_pixmap(FL_OBJECT *, Pixmap id, Pixmap mask)
> > to do about the same thing. I presume this would be a better approach.
> >
> > TIA,
> > Jathan Manley
> If you are changing the pixmaps in your application I would assign all
> the pixmaps I could to Pixmap types. In my app to control a radio I
> display the frequency as pixmaps resembling LED digits, ten in all. I
> create an array of ten Pixmaps and init them with fl_read_pixmapfile(),
> fl_read_pixmapdata() is also available. I use .xpm files because I was
> always changing the pixmaps to diferrent styles/colors.
> Then when a digit needs to be changed I simply use
> fl_set_pixmap_pixmap() to change the pixmap.

Me too !
If you want an example of this, then check out my project dynamic link
below. Once you've grabbed, unzipped and extracted the archive, look under
the "TC" directory. TC stands for time code and also uses 10 LED xpm's.

Dynamic :
Web Media & Dynamic Documentation : /~flatmax/webMedia/webMedia.html

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: