Go menu in script editor

Tariel Gogoberidze tariel at mac.com
Mon Jun 27 17:19:26 CDT 2005


OS X 10.3.9 using MC IDE 2.6b11 with engine 2.6.2 built 77

In script editor, if you click on "Edit" menu and having mouse pointer 
inside "Edit" (so that "Edit" menu is still pulled down" ) move mouse 
pointer to "Go" menu -- the "Go" menu will pull down and since that you 
are "stick" with it. No matter where you click thereafter  it pulls 
down "Go" menu and the only way to get rid of it is to quit MC.

One more difference is that the "Go" button in Script editor would not 
highlight when you click on it.
I mean, when you click for example on "Edit" menu the word "Edit" would 
highlight but clicking on "Go" would not highlight word "Go".

I checked the difference in properties between "Go" button and "Edit" 
button and it appeared that "Go" button has borderWidth = 0 and 
showBorder = true as opposed to  borderWidth = 2 and showBorder = false 
in other script editor menu buttons.

So, I applied the following script

on mouseUp
   repeat with i = 1 to 10
     put "Script Editor "&i into tEditor
     if there is a stack tEditor then
       delete stack tEditor
     end if
   end repeat
   set the borderwidth of button "Go" of card 1 of stack "script editor" 
to 2
   set the showBorder of button "Go" of card 1 of stack "script editor" 
to false
   save stack "script editor"
end mouseUp

and that "cured" the "stick" pulldown problem.

What escapes me at the moment is the explanation of this phenomena.

Basically, if you create 2 pulldown style buttons, put it next to each 
other,  set the second button's borderwidth  to 0 and showborder to 
true, click on first button and move mouse to second button while 
having the menu of first button pulled down -- you may got the effect I 
described.

Anyway, if this effect is still there in engine 2.6.5 we probably need 
to apply above "fix" to MC IDE b12

While I'm on this....

1. The standalone builder stack for engine > 2.6 in MC IDE b11 has some 
4w info in fields by default

2. I t could be worth it to fix  in MC IDE the "MC Edit Menu"  bug that 
Klaus described

Date: Wed, 14 Jul 2004 13:36:24 +0200
From: Klaus Major <klaus at major-k.de>
Subject: Re: messed up custom menus

 > Sometimes my custom menus (especially the EDIT) are messed up
 > somehow  with the MC Edit menu...

The solution that worked for me is the slightly modified version of 
solution posted later by Klaus (his exact solution would not work under 
some conditions)

------------
In the script of grp "MetaCard Menu Bar" of cd 1 of stack "MetaCard 
Menu Bar"

on setupedit -- KLAUS
   local otype
   put word 1 to 2 of the selobjs into otype
   if word 1 of otype is "card" and word 2 of otype is among the items 
of "field,button,image,player,scrollbar,graphic"
   then delete word 1 of otype
   else delete word 2 of otype
   if otype is empty or otype is "card" or otype is "stack"
   then put "(&Group/G" into line 9 of btn "Edit" of grp "MetaCard Menu 
Bar" of cd 1 of stack "MetaCard Menu Bar"
   else
     if word 1 of the selobjs is "group" and the number of lines in (the 
selobjs) is 1
     then put "Un&group/G" into line 9 of btn "Edit" of grp "MetaCard 
Menu Bar" of cd 1 of stack "MetaCard Menu Bar"
     else put "&Group/G" into line 9 of btn "Edit" of grp "MetaCard Menu 
Bar" of cd 1 of stack "MetaCard Menu Bar"
   end if
   if the editBackground of the topStack
   then put "Stop Editing &BG/T" into line 10 of btn "Edit" of grp 
"MetaCard Menu Bar" of cd 1 of stack "MetaCard Menu Bar"
   else put "&Backgrounds.../T" into line 10 of btn "Edit" of grp 
"MetaCard Menu Bar" of cd 1 of stack "MetaCard Menu Bar"
end setupedit
-------------

best regards
Tariel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3949 bytes
Desc: not available
Url : http://mail.runrev.com/pipermail/metacard/attachments/20050627/c3cd4132/attachment.bin


More information about the metacard mailing list