Re: openStack

Clark Parsons ((no email))
Thu, 23 Sep 93 10:26:03 MDT

9/23/93

Arto,

I hope the following helps. It works for me, but I think that all UNIX
machines do not always work the same. :-)

>
> I have on stack script onpenStack handler that does not seem to get run.
> If I send openstack message from msg-box I get no errors but neither
> does the handler run. Why?
>
> How is it possible to cut and past the script into another script window?
> If I use macX and change into mac, the activation disappears and if I take
> msg box to front, same thing happens.
>
> Arto Leskinen
> aleskine@cs.hut.fi
>
>

openStack script
================
Make sure the name of the handler is spelled correctly. For instance,
I created the stack script:

on openStack
put "stack is open"
end openStack

and it puts "stack is open" into the message box when I execute any of
the following from the message box:
toplevel "mystack"
modeless "mystack"
send openStack to stack "mystack"

Also make sure the handler is in the stack script, not the card script.
If you have a card handler named openStack, it will not execute unless
you specifically execute:
send openStack to card 1 of stack "mystack"

You can get to the stack script from the "Stack Properties..." dialog under
the "Edit" menu, or by typing in the message box:
edit the script of stack "mystack"

copy and paste scripts
======================
1. Go to the stack script that you want to copy and click and drag the
mouse (using mouse button 1, the left mouse button) to hilight all
the script text you want to copy.
2. Go to the "Edit" menu and click copy.
(You first may need to move the "Properties" dialog box away from in
front of the "Edit" menu to access the "Edit" menu, and then hilight
the text with click and drag again, before you click copy. It's
unfortunate that the properties and script dialog usually conceal
the menubar.)
3. Close the script editor of your source script.
4. Open the script editor of the destination script.
5. Click the mouse where you want the text inserted.
6. Access the "Edit" menu.
7. Click "Paste" in the "Edit" menu.

You can also copy and paste to an open editor, like "vi".
1. Open the editor in a window that is not running
MetaCard and start insert mode.
2. Hilight the text, as above, using mouse button 1.
3. Move the mouse cursor to your non-metacard editor window.
4. Click mouse button 2 in the editor window.

--
Sincerely,

Clark Parsons, MS 11 Learning Products Engineer OSSD : ULP - Fort Collins, 1UL7 clarkp@fc.hp.com 1-303-229-3323