Le 31 juil. 2012 à 13:37 Soir, Christian Schmitz a écrit:

> Am 31.07.2012 um 13:15 schrieb Arnaud Nicolet <[email protected]>:
> 
>> NSLMShowMainWindow.CreateMenuItem(CstStrShowManagerWindow,"F6")
>> NSLMShowMainWindow.keyEquivalentModifierMask=1048576
> 
> Well, for the keyEquivalentModifierMask, you may need to include 
> NSFunctionKeyMask (defined in NSEventMBS class).
> And also there is defined NSF6FunctionKey which may be the code to use.

Thanks. I've tried these statements:
NSLMShowMainWindow.CreateMenuItem(CstStrShowManagerWindow,"6")
NSLMShowMainWindow.keyEquivalentModifierMask=1048576+8388608 //Command+Function

NSLMShowMainWindow.CreateMenuItem(CstStrShowManagerWindow,"")
NSLMShowMainWindow.keyEquivalentModifierMask=1048576+63241 //Command+F6

NSLMShowMainWindow.CreateMenuItem(CstStrShowManagerWindow,"F6")
NSLMShowMainWindow.keyEquivalentModifierMask=1048576+8388608 //Command+Function

(and they didn't worked)

But I'm not sure what is the correct mix (If I use F6, what should I enter in 
the second parameter of CreateMenuItem? If I just use the NSFunctionKeyMask, I 
guess it's the fn key, not F1-F16).

My thought was to pass NSF6FunctionKey to the second parameter, but it's an 
integer constant and I assume it's pointless to put it as a string literal. 
What do you think about this?

BTW: have you noticed about NSF35FunctionKey? Which keyboard has 35 function 
keys? A piano‽
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to