I
did read it but it makes no sense given the examples in use. That was my point. I can't make out
what the caption
is!
Example, from Help:
Caption: Menu caption. Use "-" (no quotes) to specify a menu separator.
code example:
popupmenu(itemlist, [x=-1], [y=-1], [start=1], [count=-1], [flags=0], [sep_itemlist="|"], [sep_item=";"], [on_cancel=""])
Ok, so according to your comment and the Help file, anything
before the first comma is Caption, yes?
Yet when I rename this to
MyName
I get an error:
Dubious syntax: MyName
So according to your explanations and the Help file I am doing nothing wrong??? Yet this simply does not match up!
You also state: "uses a caption|data|icon|state syntax." That's 4 terms, yet there are 9 in the above example!!! Which ones are the 4 terms you mentioned relating to in the example?
This is exactly what I am saying, Help files are not good ways to learn coding.
I appreciate Developers aren't there to teach us, but this was my reason for asking what language this scripting is. So, I can find more help around the internet.
I don't wish to be spoon fed and don't wish to keep bothering people, specifically you it seems, here. Yet I do wish to learn how to use Script, even if just the basics. Which, I imagine, once understood, remove many of the problems I am having.
Sooo... back on track. What did I want to achieve? I have explained this, maybe not too well...?
Basically I want to remove the MainMenu bar and have a single Toolbar button that replaces it. The only problem with the current
popupmainmenu;
is that it shows a popup
without sub-menus. Clicking on one of these opens a second popup with the content of the selection you made. ie, click "Edit" and a second popup appears in place of the first with all the "Edit" menu options.
I want to have the MainMenu with Sub-Menu's. Why? Because there are so many menu options that it is difficult to find what you want. If you don't know where to look for, let's say "Tools/Customise List/Full Row Select" then currently you have to click whhere you think it might be, for example, "View" menu, and when you can't see it there, you have to reclick to open the MainMenu Button, rather than simply hover the mouse between menu's as you would if you used the MainMenuBar. I just don't get why it has been done this way, it makes no sense!
In order to get around this, I am going to manually recreate all the functions into a button as a sub menu system. I have found the "QuickCustomMenuBuilder" script, but I'm unsure how this works and how you undo it if you changed your mind about something. Hence why I asked before, elsewhere, about where scripts are stored and how to remove them. How do scripts become a part of XY? It seems they are generally only executed on demand as Buttons, Menus, etc. But with the "QuickCustomMenuBuilder" script this becomes an integral part of the settings to permanently change how the program works. How is it undone?
I attempted to use it, then couldn't understand why in one instance Catalogues appeared in the Menu but the other it had gone! Maybe I don't want all these features like Paper folders, catalogues etc in the menus now, but later I may rethink this and want them back.
Sorry for the long posts and changes of topic, it's sort of interrelated so hopefully you wouldn't mind shedding some light on these issues please...