Re: hide objects

Boyd Sweeney (starnet!apple!puzzler.nichols.com!sweeneyb)
Thu, 16 Jun 1994 09:55:00 -0500

>Hello,
>
>I was wondering if there is a way to hide or show all of the buttons, fields,
>groups, and/or images
>on a card without knowing what is on the card?
>
>Is there a command like: "show all buttons on card theCard" ?????
>
>Thanks
>
>David Humphreys
>MPR Teltech Ltd
>Burnaby, BC

Give the following a try:

on ShowButtons TheCard
local NumButtons, Counter

put the number of card buttons on card TheCard into NumButtons
repeat with Counter = 1 to NumButtons
show card button Counter of card TheCard
end repeat
end ShowButtons

Note that this only show buttons placed directly on the card, and ignores
buttons that happen to be in groups placed on the card. To show the group
buttons as well, leave out the "card" keyword before "button".

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Boyd Sweeney Scientist, Nichols Research Corporation _/
_/ sweeneyb@puzzler.nichols.com (205) 883-1170x1775 _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/