You are here: PSPad forum > English discussion forum > addMenuItem: Using same item in different scripts

addMenuItem: Using same item in different scripts

#1 addMenuItem: Using same item in different scripts

Posted by: padfox | Date: 11/15/2011 18:46 | IP: IP Logged

Hello again,

I have different script files but all scripts should use the same main menu item. How can I archive that?

Many thanks and greetings
padFox

Options: Reply | Quote | Up ^


#2 Re: addMenuItem: Using same item in different scripts

Posted by: pspad | Date: 11/15/2011 19:33 | IP: IP Logged

Why do you use same menu item to different scripts?
Use submenu, use different names for script

Options: Reply | Quote | Up ^


#3 Re: addMenuItem: Using same item in different scripts

Posted by: padfox | Date: 11/15/2011 21:24 | IP: IP Logged

The MAIN menu item (Scripts->MainMenu->SubMenu) should be the same. The submenu item is then the item which calls the script. When I use the same name for the main menu item again, I get two different items with the same name.

Many thanks and greetings
Udo

Edited 1 time(s). Last edit at 11/15/2011 21:25 by padfox.

Options: Reply | Quote | Up ^


#4 Re: addMenuItem: Using same item in different scripts

Posted by: pspad | Date: 11/16/2011 06:50 | IP: IP Logged

In my opinion is better to get 2 item with same name instead one item from different scripts - one will rewrite another?.

Options: Reply | Quote | Up ^


#5 Re: addMenuItem: Using same item in different scripts

Posted by: padfox | Date: 11/16/2011 15:53 | IP: IP Logged

An example. I have two scripts:
- Script1 with submenu item "ScriptSubMenu1" in ScriptFile1
- Script2 with submenu item "ScriptSubMenu2" in ScriptFile2.
Now I want to archive that both scripts (Script1 and
Script2) use the same mainmenu item "ScriptMainMenu12":
Scripts
+- ScriptMainMenu12
___+- ScriptSubMenu1
___+- ScriptSubMenu2

Is that possible?

Many thanks and greetings
padFox

Edited 1 time(s). Last edit at 11/16/2011 15:54 by padfox.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2013 Jan Fiala
Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák