Hi ! Friends:
I want to create a button in the menu.
I found this command(addMenuButton), but I don’t seem to be sure of its format or usage。So I need your help, thanks.
Hi
I know that addManuItem, I just want to add a button by addMenuButton. Not that style(addManuItem). Thank you.
The parameters should pretty much be the same as in the addMenuItem. I tested with the following code in the init.py file and it seems OK.
from vcApplication import *
def OnStart():
cmduri = getApplicationPath() + 'helloworld.py'
cmd = loadCommand('cmdHello', cmduri)
addMenuButton('VcTabHome/EXAMPLE', 'EXAMPLE BUTTON', 'cmdHello', VC_TOOLSIZE_IMAGE_AND_TEXT_LARGE)
Good. It must be used with VC4.3. Thank you.