Restricting graphics to a field?

Jan Schenkel janschenkel at yahoo.com
Thu Jan 15 09:58:54 EST 2004


--- 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.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


More information about the use-livecode mailing list