Anyone? Scripting a "hide/show"

Greg Titus greg at omnigroup.com
Wed Apr 30 01:40:14 PDT 2003


On Tuesday, April 29, 2003, at 07:59  AM, Louis R wrote:

> Is this even possible???
>
> i have a rectangle (parent)
> it has 3 rectangle "children" (lines go from the parent down to each 
> of the three children)
> i want to attach a "action" to the parent- so that when i click on it 
> the children will "hide" (disapear from the canvas) clicking on it 
> again will 'show' all the children
>
> is this possible in 3.0 pro?
>
> (i know applescript but the dictionary was too confusing)

Hi Lou,

Individual graphics can't be shown or hidden in OmniGraffle, but layers 
can. So one thing you could do would be to place the children on their 
own layer, and then make the action on the parent something like:
	set aLayer to layer 2 of page of self
	set visible of aLayer to not visible of aLayer

Hope this helps,
	- Greg




More information about the OmniGraffle-Users mailing list