Re: Canvases and other stuff...

Steve Lamont (
Wed, 7 May 97 09:50:51 PDT

To subscribers of the xforms list from (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.

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