Re: Questions about canvas

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 27 Nov 96 10:46:55 PST

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

> I just want to ask some questions about canvases, because i couldn't find
> answers in the manual, here we go:
>
> How do i change the width an height of the canvas at runtime?

fl_set_object_size( canvas, width, height );

should work.

> How do i attach scrollbars to a canvas.

The short answer is you can't right now -- scrollable Canvases aren't
supported. I understand this is Fixed In Next Release.

However, you can do it by creating your own scrollbars and then
creating a child window to the Canvas object. Draw to the child
window.

Not much more complicated than a regular Canvas.

spl
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html