Re: Shortcuts in Script Editor with engine 3.5

2009-04-03 Thread Klaus Major

Hi Jaqueline,


Klaus Major wrote:


I only got one response to my important question, thanks Hugh.
Could you please check this and give a short notice?


Verified. If there is a matching command in the MC Menubar, that one  
executes instead of the one in the script editor. Shortcuts that  
have no matches in the MC Menubar still work (for example, return  
key to step over, and Cmd-I to step into.)


I need to know for the next release of the MC IDE and act  
accordingly if necessary.
Maybe I will add some buttons and/or change the shortcuts or any  
other workaround

if there is any.


If the script editor's menu group is set as the menubar of the  
stack, then it should work. Right now there is no menubar set for  
the script editor stack at all. In fact, when I look at the  
objects in the Script Editor stack, there isn't even a menu group.  
There are only a bunch of ungrouped buttons. I think you need to  
group those buttons, give it a name, and set the Script Editor to  
use that group as a menu group. Then everything should work.


The problem with using a menu group is that if you DO want to  
execute commands from the MC main menu, they won't receive any  
messages if the script editor menu is trapping the keystrokes. That  
may be why Scott Raney didn't use a menu group, but trapped  
keystrokes in a commandKey handler instead.


There is an existing commandkey handler in the editor field which  
you could add to. Of course, this would only trap keystrokes that  
were sent to the main script field -- but I think most of the time  
that's good enough. So maybe that's the way to go.


Thank your for the hints, will check this.
Another surprise in MetaCard with a new engine ;-)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: Shortcuts in Script Editor with engine 3.5

2009-04-03 Thread Tariel Gogoberidze


On Apr 3, 2009, at 1:00 PM, J. Landman Gay wrote:



Thanks for the report, Tariel. The rev scripts are inserted as a
backscript if you are installing in the MC IDE. I'm not sure why your
copy couldn't find them. MC Setup checks the revAppVersion() to see if
it is  0, and if not, it inserts the rev backscript.

What do you get if you put this into the message box:

   put revAppVersion()

In MC, that should return zero.

I just did a test install of the 3.5rc1 engine using the MC IDE and  
did

not get the error. Did you customize the MC IDE somehow to change
revAppVersion()?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



Hi Jacque,

I have revAppVersion() = 0

What is happening is that in handler buildMC you are calling  
displayOSXfolder (which in turn calls revPathtoApplescript 
(pFolderPath)) twice



first


 if the platform = MacOS then displayOSXfolder tDestPath,close
-

and second time just before the handler BuildMC handler  ends with

-
if the platform = MacOS then displayOSXfolder tDestPath,open
---

and before you calling it second time, you have

-
  remove script of btn revScripts from back -- in case
-

So, you have



 remove script of btn revScripts from back -- in case
  if sLibURLInserted = true then stop using stack libURL
  if the platform = MacOS then displayOSXfolder tDestPath,open

---

and because script of btn revScripts is removed from back

calling displayOSXfolder tDestPath,open which in turn calls put  
revPathtoApplescript(pFolderPath) into tFolder fails



best regards
Tariel






___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: Shortcuts in Script Editor with engine 3.5

2009-04-03 Thread J. Landman Gay

Tariel Gogoberidze wrote:


So, you have



 remove script of btn revScripts from back -- in case
  if sLibURLInserted = true then stop using stack libURL
  if the platform = MacOS then displayOSXfolder tDestPath,open


Whoops. Thanks Tariel. I didn't get the error because I am loading the 
revCommon library in MC when it launches -- I'd forgotten all about 
that. The next question is how come no one else noticed the problem. :)


Anyway, the fix is pretty simple. You've probably already done it. Just 
change the order of those last lines to this:



  if sLibURLInserted = true then stop using stack libURL
  if the platform = MacOS then displayOSXfolder tDestPath,open
  if not sRevRunning then remove script of btn revScripts from back

I'll put up another revision this weekend with the fix in it. Thanks for 
noticing.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: Shortcuts in Script Editor with engine 3.5

2009-04-02 Thread Klaus Major

Hi Tariel

thanks for your feedback!

A bit more feedback wouldn't hurt however (Hint, HInt! :-)


On Apr 1, 2009, at 1:00 PM, Klaus Major wrote:



I noticed that with engine 3.5 the shortcuts e.g. the script editor
like CMD-M or CMD-F etc. do not work anymore?

The shortcuts are apparently directed to the MC Menubar and CMD-M
will open/close themessage box, CMD-F will open the MC Find dialog
and NOT the script find dialog.This did work with 3.0.Someone else  
noticed this?


I only got one response to my important question, thanks Hugh.
Could you please check this and give a short notice?
I can confirm (Mac OS X) that with latest 3.5 engine CMD-F in script  
editor now opens Find dialog and NOT Script find dialog.


The debug shortcuts are also not accessible which is even worse!

I will write a mail to supp...@runrev.com before I start making
evil hacks in the script editor, maybe they have a VERY clever  
workaround ;-)


BTW since 3.0 the Script find dialog is now NOT resizable and  
twice as long as it was before.

While you are on this, can you please make it resizable again?


:-)


to take care of geometry you can do something like this..
-
vertical min and max is set to 100
horizontal min is set to 200
script of card
on resizeStack x,y
 set the rect of fld find Text to 104,12,x-110,36
 set the right of button find next to the right of card 1 - 11
 set the right of button done to the right of card 1 - 11
end resizeStack
-


Thanks!


Also, in current IDE we have..
-
the script of card 1 of stack MetaCard Menu Bar
.
 if the platform contains Mac then
   set the loc of this stack to the screenloc
 else
   set the loc of this stack to 320,67
 end if
 insert script of button menuButton into front
 insert script of button newobj into back
 if the defaultMenubar is empty
 then set the defaultMenubar to MetaCard Menu Bar
 if the platform is MacOS and char 1 of the systemVersion is 1  
then

   set the textFont of this stack to Lucida Grande
   set the textSize of this stack to 13
 else if the platform is Win32 then
   set the textFont of this stack to Verdana
   set the textSize of this stack to 11
 end if
.
First, personally I don't think we should force tool palette


the ... to the screenloc relates to stack MetaCard Menu Bar, which  
is not

opened at all on the Mac, except for editing!


to screenloc and second and most important, can you please change
set the textFont of this stack to Lucida Grande
   set the textSize of this stack to 13

to

set the textFont of this stack to Lucida Grande
   set the textSize of this stack to 11

which is default and more acceptable font size for Mac


Sure, any objections from other users?


...


I need to know for the next release of the MC IDE and act accordingly
if necessary.
Maybe I will add some buttons and/or change the shortcuts or any  
other

workaround if there is any.
Hints very welcome! Thanks!


No hints at this moment but the goofy workaround would be to add the  
following mini handler to the script of card 1 of stack script  
editor


on commandkeydown x
 if x = f then
   send doFind  word 2 of the name of this stack  ,   the  
selectedtext  to stack Script Find

 else
   pass commandkeydown
 end if
end commandkeydown
In my brief test it reversed behavior to normal


See above, will ask the mothership first.


I already created a palette for the new datagrid and will relase this
as a plug-in on the weekend

That's a great news, THANKS.


Indeed! :-D


(hopefully, since I have a gigantic cold, pass me the
hankies...)


:(



Later I will try to implement this into the properties palette but
that may require that
I make this palette a bit higher, from 208 pixel to 264.
I think we can live with this
absolutely, but how difficult it would be to make it dynamically  
resize to 264 for Grid and back to 208 for other controls ?


Hm, a bit more elaborate that you might think, since I have the prop  
palette at the bottom

of my screen wehile others may have it somewhere else...

I will see what I can do.


if I also make some changes to e.g. the
field Tooltip so we can finally enter more than one line and maybe
add a antialias for graphics.


NICE

Best regards
Tariel


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: Shortcuts in Script Editor with engine 3.5

2009-04-02 Thread J. Landman Gay

Tariel Gogoberidze wrote:


Jacque,

When I was doing 3.5 installation with your tool metacard_setup.mc 
(great stack and very helpful), I got script error on 
revPathtoApplescript function.


on displayOSXfolder pFolderPath,pAction -- open or close the Finder 
folder to force icon update

  put revPathtoApplescript(pFolderPath) into tFolder  -- -- error


When I was using it,  no Rev IDE was running and it could not find the 
function around and throw the error


Thanks for the report, Tariel. The rev scripts are inserted as a 
backscript if you are installing in the MC IDE. I'm not sure why your 
copy couldn't find them. MC Setup checks the revAppVersion() to see if 
it is  0, and if not, it inserts the rev backscript.


What do you get if you put this into the message box:

  put revAppVersion()

In MC, that should return zero.

I just did a test install of the 3.5rc1 engine using the MC IDE and did 
not get the error. Did you customize the MC IDE somehow to change 
revAppVersion()?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: Shortcuts in Script Editor with engine 3.5

2009-04-01 Thread Tariel Gogoberidze


On Apr 1, 2009, at 1:00 PM, Klaus Major wrote:




I noticed that with engine 3.5 the shortcuts e.g. the script editor
like CMD-M or CMD-F
etc. do not work anymore?

The shortcuts are apparently directed to the MC Menubar and CMD-M
will open/close the
message box, CMD-F will open the MC Find dialog and NOT the script
find dialog.

This did work with 3.0.

Someone else noticed this?


I only got one response to my important question, thanks Hugh.
Could you please check this and give a short notice?



I can confirm (Mac OS X) that with latest 3.5 engine CMD-F in script  
editor now opens Find dialog and NOT Script find dialog.
BTW since 3.0 the Script find dialog is now NOT resizable and twice  
as long as it was before. While you are on this, can you please make  
it resizable again?


to take care of geometry you can do something like this..

-
vertical min and max is set to 100
horizontal min is set to 200

script of card

on resizeStack x,y
  set the rect of fld find Text to 104,12,x-110,36
  set the right of button find next to the right of card 1 - 11
  set the right of button done to the right of card 1 - 11
end resizeStack
-


Also, in current IDE we have..

-
the script of card 1 of stack MetaCard Menu Bar

.
  if the platform contains Mac then
set the loc of this stack to the screenloc
  else
set the loc of this stack to 320,67
  end if
  insert script of button menuButton into front
  insert script of button newobj into back
  if the defaultMenubar is empty
  then set the defaultMenubar to MetaCard Menu Bar
  if the platform is MacOS and char 1 of the systemVersion is 1  
then

set the textFont of this stack to Lucida Grande
set the textSize of this stack to 13
  else if the platform is Win32 then
set the textFont of this stack to Verdana
set the textSize of this stack to 11
  end if
.

First, personally I don't think we should force tool palette to  
screenloc and second and most important, can you please change


 set the textFont of this stack to Lucida Grande
set the textSize of this stack to 13

to

 set the textFont of this stack to Lucida Grande
set the textSize of this stack to 11

which is default and more acceptable font size for Mac

---

Jacque,

When I was doing 3.5 installation with your tool  
metacard_setup.mc (great stack and very helpful), I got script  
error on revPathtoApplescript function.


on displayOSXfolder pFolderPath,pAction -- open or close the Finder  
folder to force icon update

  put revPathtoApplescript(pFolderPath) into tFolder  -- -- error


When I was using it,  no Rev IDE was running and it could not find  
the function around and throw the error


-




I need to know for the next release of the MC IDE and act accordingly
if necessary.
Maybe I will add some buttons and/or change the shortcuts or any other
workaround
if there is any.

Hints very welcome! Thanks!


No hints at this moment but the goofy workaround would be to add the  
following mini handler to the script of card 1 of stack script editor


on commandkeydown x
  if x = f then
send doFind  word 2 of the name of this stack  ,   the  
selectedtext  to stack Script Find

  else
pass commandkeydown
  end if
end commandkeydown

In my brief test it reversed behavior to normal





I already created a palette for the new datagrid and will relase this
as a plug-in
on the weekend



That's a great news, THANKS.




(hopefully, since I have a gigantic cold, pass me the
hankies...)


:(



Later I will try to implement this into the properties palette but
that may require that
I make this palette a bit higher, from 208 pixel to 264.




I think we can live with this


absolutely, but how difficult it would be to make it dynamically  
resize to 264 for Grid and back to 208 for other controls ?




if I also make some changes to e.g. the
field Tooltip so we
can finally enter more than one line and maybe add a antialias for
graphics.


NICE

Best regards
Tariel

___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: Shortcuts in Script Editor with engine 3.5

2009-03-27 Thread Klaus Major


Am 27.03.2009 um 11:44 schrieb Klaus Major:


Hi dear MC users,

I noticed that with engine 3.5 the shortcuts e.g. the script editor  
like CMD-M or CMD-F

etc. do not work anymore?

The shortcuts are apparently directed to the MC Menubar and CMD-M  
will open/close the
message box, CMD-F will open the MC Find dialog and NOT the script  
find dialog.


This did work with 3.0.

Someone else noticed this?


Forgot to say that this is on OS X.






Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard


Re: Shortcuts in Script Editor with engine 3.5

2009-03-27 Thread Hugh Senior
Yup, on WinXP also for... well as long as I can (almost) remember (2.81?).
The missing cmd.M to step-over has been an especial irritant, but I suppose
I have just become used to its little ideosyncracies and use breakpoint dots
instead as cmd.R still works fine. Not sure why I haven't delved into the
code to restore the missing functionality. Laziness, probably. Amazing what
you can get used to!

/H

-Original Message-
Hi dear MC users,

I noticed that with engine 3.5 the shortcuts e.g. the script editor
like CMD-M or CMD-F
etc. do not work anymore?

The shortcuts are apparently directed to the MC Menubar and CMD-M
will open/close the
message box, CMD-F will open the MC Find dialog and NOT the script
find dialog.

This did work with 3.0.

Someone else noticed this?


Best

Klaus

___
metacard mailing list
metacard@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard