[comp.sys.mac.hypercard] polygon tool won't work from script?

ben@ut-emx.uucp (Ben Sloan) (04/26/91)

I want to use the polygon tool to draw a filled polygon from a script.
I'm using something like:

	choose poly tool
	set pattern to 22
	drag from x to y
	drag from y to z
	drag from z to x
	choose browse tool


I get nothing.   The tool gets chosen and the pattern set, but nothing gets
drawn.  I tried clicking at the coordinates also, but to no avail. 

Suggestions?

Thanks,


Ben Sloan
ben@emx.utexas.edu

jacob@latcs2.lat.oz.au (Jacob L. Cybulski) (05/01/91)

From article <47965@ut-emx.uucp>, by ben@ut-emx.uucp (Ben Sloan):
> I want to use the polygon tool to draw a filled polygon from a script.
> [and he gets nothing]

I am not sure if it has been changed in HC 2.0 (I haven't tried it yet),
but HC 1.2.x did not allowed to use the polygon tool from a script,
it is not described in Hypercard Script Language Guide, but the Tricks
of Hypercard Masters actually say that explicitly - "No polygons from
the script!!!". Actually you cannot catch any events during from the
polygon drawing events either. You can get a polygon drawing XCMD from
your local ftp site (must be closed though).

Jacob