Hello Jon,

After a careful reading of Help re filemenus,
the behaviour you describe seems to be consistent
with the syntax rules.
What's surprising is that your first example works
because it does not strictly follow the syntax rules either,
having no label before its Format command.

Quote from Help:
Lines take one of these two forms:
label="commandortext" parameters !`work directory ::index,iconfile
@"label" commandortext parameters !`work directory ::index,iconfile
<end quote>

Your second example which starts:
J> *Format Context =firefox
is understood by PowerPro to be the second syntax form mentioned
in Help - because "*Format Context" comes before an = sign,
it is taken to be the item's label.
Only what comes after the = is taken to be the command,
i.e. your command was only "firefox" not the
*Format Context =firefox
which you intended. Therefore, as you report:
J> Now the first item in the menu is "format context"

Two suggestions:
According to Help, If you want to specify =exename as your
caption list, you should use the first form like this:
anylabel="Format" Context =firefox
or use the second form like this:
@"anylabel" *Format Context =firefox

In both cases my "anylabel" is an irrelevant label for the item,
necessary because filemenu expects a label before your Format
Context command. (irrelevant in the sense that it is not displayed;
however it is necessary)


I notice that Help shows this example at the bottom of the page:
@mysubmenu Format Startsubmenu

Notice that an "irrelevant" label precedes the Format command.
Also notice the inconsistency in Help: in this example the label
was not placed in "quotes", unlike the syntax definition shown earlier.
I guess that means you should exeriment using my two suggestions
above with and without the quotes I used.


Another way to see it: the non-executed Label is equivalent
to the non-executed Name in a command list item with
a Format Context command.


I hope my messy longwinded explanation has not been too confusing.
It's past grandad's bedtime :-)

Alan Martin

_____________________________________________________________

If the above fails, does Format ContextIf work in your filemenu?

@anylabel *Format ContextIf (window("exename","active")=="firefox")




Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to