How to get feedback if a substack is opened

Ray Horsley ray at linkitonline.com
Thu Jul 21 07:29:31 CDT 2005


I wrote a tiny function for this a while ago which has worked fine for 
me:

function stackIsOpen stk
   set the wholeMatches to true
   put the openStacks into tmp
   if lineOffset(stk,tmp) = 0 then
     return false
   else return true
end stackIsOpen

Hope it works for you, too.

Ray Horsley
Developer, LinkIt! Software


On Jul 21, 2005, at 3:55 AM, Reinhold Venzl-Schubert wrote:

> Hello!
>
> How do mc reports if a substack is open / visible or not?
> I tried it in two ways but I failed:
>
> on mouseUp
>   if the openstack of stack "xyz" is true then
>     put "stack xyz is opened"
>   else
>     put "stack xyz is closed"
>   end if
> end mouseUp
>
> I this case I get "stack xyz is closed" as well if the stack in opened.
>
>
> on mouseUp
>   if the visible of stack "xyz" is true then
>     put "stack xyz is visible"
>   else
>     put "stack xyz is invisible"
>   end if
> end mouseUp
>
> I this case I got "stack xyz is visible" as well if the stack is 
> invisible.
>
> What's the right way?
>
> Reinhold
>
>
> PS: Hi Klaus, how are you?
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1303 bytes
Desc: not available
Url : http://mail.runrev.com/pipermail/metacard/attachments/20050721/6d90b4da/attachment.bin


More information about the metacard mailing list