Re: Scrolling graphic area?

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 19 Mar 97 05:34:31 PST

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

> Hmm... Would I HAVE to have seperate windows for each pixmap? Or
> is that just the best way to handle which one is clicked into? ...

You don't necessarily need separate Windows (as another poster
suggests, you could make a giant Pixmap and use XCopyArea() to do the
dirty work). I like to use Windows because then you can set the
Pixmap into the Window as a Background Pixmap and you don't have to
worry about Exposure events and redrawing areas -- the X server
handles that for you.

> Hmm, I like the box around the positioner, I just wanted to set
> a background instead of the plain gray one. Maybe I would have to code up a
> PixmapPositioner type?

I suppose you could cruft up a custom object.

> I don't know X programming, and would prefer not having to learn. ;-)
> If it is really going to take that to get it to work I may have to, of
> course, but in the short time I might just stay at using a text box until
> the system gets farther along.

I think you may have to delve into the joys of Xlib programming if
you're going to do a tiled Pixmap Window of some sort. Once you're at
the Canvas level, there's not a huge amount of Xforms direct support.
I suppose you could create an OpenGL canvas and use OpenGL (or Mesa on
a non-SGI or other OpenGL supported platform) to do your Pixmap
mangling but learning OpenGL is as bad as learning Xlib if you're just
breaking ground.

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/xforms-archive/