[comp.sys.mac.hypercard] Printing hierarchical elements

mason@habs11.enet.dec.com (Gary Mason) (01/22/91)

I wish to have some invisible buttons under various fields which, when clicked
upon, will cause related data to appear (standard stuff - click on a place name
and a map appears; click on a subdivision of the map, and a closer view of the 
subdivision appears; etc.). Having clicked upon a button at any level, I would
like to invoke a print option which would then cause to print all subsequent
nodes in the selected path. This could either be any explicitly defined nodes 
below the button (which makes sense only if the next node is a leaf), or all 
nodes below the button (which would be each branch traversed in some predefined
order). 

For example, assume a map of North America with countries delineated (Canada,
US, etc.); subdivisions within countries (states in the US); and one more
level of subdivisions within those (counties in the US states). Click on 
the United States (name in a table, or position on the map) and then have the 
country and all state and all county maps printed; or click on a state name or 
location on the country map to get a map of the state and maps of the counties 
in the state printed. Also helpful would be to invoke the print request on the 
leaf, and have all preceding nodes on the path be printed.  For example, if on 
a county, invoke the print to get the county map, the state map to which it 
belongs, and the map of the US.

I am too new to be doing this, I suppose, but it is a project I have wanted to
do for a while, so why not?  My first thinking requires a pass through all
elements to get the scripts to get the subordinate element names to...

Any and all help would be appreciated.

Thanks...Gary
mason@habs11.enet.dec.com