Restricting graphics to a field?

Wouter wouter.abraham at pi.be
Thu Jan 15 11:26:53 EST 2004


On 15 Jan 2004, at 16:38, use-revolution-request at lists.runrev.com wrote:

> Message: 11
> Date: Thu, 15 Jan 2004 06:58:54 -0800 (PST)
> From: Jan Schenkel <janschenkel at yahoo.com>
> Subject: Re: Restricting graphics to a field?
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <20040115145854.3437.qmail at web60503.mail.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
> --- 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.
>


In OS X you can kind of do this.
Make the drawing place the main stack and open the substack
containing the field as drawer. In this way the drawing tools are 
restricted
to the main stack.
May be there is a possibility to mimic this behaviour for the other 
platforms.

HTH,
WA



More information about the use-livecode mailing list