Re: XForms: displaying results

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 9 Apr 99 06:55:01 PDT

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

> I'm still working on a small utility with full delight. However, I
> couln't figure out something very basic.
> My program consists mostly of an "entry widget", "button", and a "result
> window". The latter one is a "scrolled canvas".
> (First::::In the postscript manual dated april 1998 there's written that
> the scrolled canvas isn't functional; I use forms version 0.88? - is
> this true? I mean, the widget I can get created onto my GUI.)

A new release is in the works. TC had a job change which has been
keeping him busier than usual. I actually think he may be waiting on
me to finish up some contributions on image handling that I've been
{procrastinating on,diverted from} over the past several weeks. :-/

> The other thing: How can I display the value of a global variable in my
> result widget (currently the "scrolled canvas"? I only have to display a
> floating point number.

I'm not sure I understand why you need a Canvas to display a floating
point number. A Canvas object, scrolled or otherwise, is really just
a slightly enhances raw X Window into which you can draw whatever you
want using your favorite graphics API.

If you just need to display the actual number, then I'd suggest using
a Text object or one of the other related objects. That would make
more sense to me.

If you mean that you want to display some graphics based upon that
floating point number (or numbers), then you need to look at an
appropriate API, such as OpenGL/Mesa3D, to generate images based upon
your data. Exactly what API you choose will depend on what you're
trying to show.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/