Re: Canvases and other stuff...

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 7 May 97 09:50:51 PDT

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

> If anyone can help me in a way please do. I need to know how can I
> create a drawing zone with scrollbars. What can I use for that? - as in
> the documentation it says that the SCROLLED_CANVAS type is not yet
> implemented or functional.

I've discussed how to do this at some length a couple of times -- you
might want to check the older archives for a complete discussion (it's
not in the web-based article archive -- I just checked).

You can create a Canvas object and then create a child Window of the
Canvas in the standard Xlib manner (XCreateWindow, Basically).

This child Window may be larger than the Canvas object, of course, and
it will be clipped automagically.

The scroll bars can handle the window positioning through callbacks
making XMoveWindow() calls.

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/