Load more than one extension
-
Hello,
i want to load 3 similar extensions with different names and icons.But with all activated in the menu Window/Preferences,
in the menu View/Toolbar/ shows only one of them.
Anyone know a solution to load the three at the same time? -
Júlio,
I'm a little confused by your questio. Are these extension you have written yourself?
-
@juliogriebeler said:
Hello,
i want to load 3 similar extensions with different names and icons.But with all activated in the menu Window/Preferences,
in the menu View/Toolbar/ shows only one of them.
Anyone know a solution to load the three at the same time?
This probably belongs in the Developers' forum ?
When you write a new 'tool' you create a toolbar and add commands into it; each commands has its own button images etc...
If you have separate scripts loading you need to make an enduring reference to the toolbar.
So have a 'loader' script, with a 'module' [saymodule Julios...... end
] in which you define the toolbar with a@tbar = ...
reference.
Then get it to load the other scripts which you have in a subfolder [perhaps called 'Julios'].
Then have each of those script's 'tools' encased in the same named 'module', and have some code to add each tool's command/button to '@tbar
' toolbar.
This way you make the toolbar and add items too it from other scripts, by sharing the same module and a common reference to the toolbar, using a@
name that 'endures'
Advertisement