SampleDraw challenge

fuegox at mac.com fuegox at mac.com
Wed Jan 30 18:24:01 EST 2002


On Wednesday, January 30, 2002, at 02:34 PM, Richard Gaskin wrote:

> The SuperCard package shipped with a handy example app called 
> SampleDraw,
> elements of which are useful to most apps.   One of the useful things 
> about
> SC's backgrounds being independent of the window is that they 
> effectively
> form a window "pane", making printing large backgrounds a one-liner and
> other niceties.
>
> Most of those I've gotten around, but find my pre-coffee self stumped on
> this one:
>
>   How do you _interactively_ create an object in a background?
>
> That is, without hiding the scroll bars. :)
>
> There have been many good tips here recently for creating objects in
> backgrounds, but if memory serves none of them addressed the case of a
> drawing application, in which the user creates objects interactively and
> manipulates them with the pointer tool.
>
> If we use a background with scrollbars, and use a non-selectable 
> graphic as
> the first object in that group to serve as a pane (defining the 
> scrollable
> area) we're off to a good start as far as letting the user maniplate
> objects.  But to make new ones by dragging them out with the graphic 
> tool?
> Hmmm....

I have never found a way around this.  What I ended up doing was when 
the user wanted a rect, or whatever, I just drew one for them and 
allowed them to size and move it.

Good question.

-Mark Talluto




More information about the metacard mailing list