> > command-option-S edits the stack script immediately.
> > command-option-C edits the card script.

These are part of the MCTOOLS. Try
  edit the script of btn "menuButton" of stack "MetaCard Menu Bar"
This button is inserted into the front, i.e. it recieves messages before
the object itself does. Be careful with this script, you may render your
editing environment useless...

Now find the "commandKeyDown" handler that does the trick.


> > Is there any keyboard command to switch from the browse to the pointer
> > tool? (ala HyperCard's command-tab, command-tab-tab, and
> > command-tab-tab-tab to switch between the browse tool, the button tool,
> > and the field tool)

Not yet. But while you are still editing that script add a tabKey handler:
on tabKey
  if the optionKey is down and the commandKey is down then
    if the tool is "browse tool" then
      choose pointer tool
      set the cursor to arrow
    else choose browse tool
  else pass tabKey
end tabKey

Note the line that sets the cursor. This is because MetaCard does not
redraw the cursor when you choose the pointer tool... you'll have to
move the mouse first.

It would be nicer to just add these lines to the commandKeyDown hanler:
  case tab
  if the tool is "browse tool" then
    choose pointer tool
    set the cursor to arrow
  else choose browse tool
  break

But the commandKeyDown message is not sent for tab keys.

> > Is there any way to edit the script of an object while using the browse
> > tool, as opposed to switching to the pointer tool, and then
> > option-command-clicking (on the Mac) on the object?

You can do that yourself as well. Find the mouseDown handler, merge line
2 and 3, and delete line 5 and 7, so it reads:
on mouseDown which
  if checkEdit() then put "edited" into stackstatus[targetstack()]
  if the commandKey is down and the optionKey is down then
    edit the script of the target
  else pass mouseDown
end mouseDown

The mouseUp message still is sent to the target, so catch that by adding
the line:
  if the commandKey is down and the optionKey is down then exit to MetaCard
... as the first line

Now you can Command-Option-Click on any object to edit its script.
MetaCard is simply wonderful!!!

There is a major drawback though: The next release of MetaCard will soon
come and you'll have to reapply these changes. That was the reason for
developing the xTools which are freely available on
http://www.mctools.com and will soon be updated. xTools splits
functional blocks into separate files so you can easily add your own
tools, especially the script editor.


Regards
     R�diger

--------------------------------------------------------------------
| Ruediger zu Dohna   GINIT GmbH   0721-96681-63    [EMAIL PROTECTED] |
| PGP-Fingerprint: F1 BF 9D 95 57 26 48 42 FE F8 E8 02 41 1A EE 3E |
--------------------------------------------------------------------

Reply via email to