Restricting graphics to a field?
Doug Lerner
doug at webcrossing.com
Thu Jan 15 17:51:25 EST 2004
On 1/15/04 11:58 PM, "Jan Schenkel" <janschenkel at yahoo.com> wrote:
> --- Doug Lerner <doug at webcrossing.com> wrote:
>> I would like to have a single card with a text field
>> and a place to draw
>> graphics (I have too many windows open and it is
>> getting cumbersome).
>>
>> But when a graphics tool is selected it can draw
>> anywhere on the card.
>>
>> Is there a way of restricting the graphics drawing
>> so it can only draw in
>> the region defined by a field?
>>
>> Thanks,
>>
>> doug
>>
>
> Hi Doug,
>
> Sorry to disappoint you, but there is currently no way
> of restricting the graphic to a certain region on the
> card.
> I believe an enhancement request has been made along
> the lines of
> set the tool of group x to "graphic"
> But no idea how soon that will be implemented.
>
> The only way to accomplish that I can see right now,
> is by emulating the tools yourself, under the browse
> tool.
> But this can get very complicated because you'll have
> to handle _everything_ by script :
> - starting to track on mouseDown
> - resize dynamically on mouseMove
> - tweak on mouseUp / mouseRelease
> And then there's the fun of emulating the pointer tool
> to produce a 'marquee' while dragging as you hold down
> the mouse.
>
> If I were you, I'd wait for the feature to be
> implemented.
>
> Jan Schenkel.
Thanks for your note, Jan.
is there any way then to restrict graphics from being drawn on just certain
stacks and not others?
I would want people to draw on a "canvas" stack but not on top of a stack
where they are supposed to enter text into a field.
doug
More information about the use-livecode
mailing list