TCMenu uses the string values to the right of the "?" as the PROMPT string for an empty parameter dialog
No, prompt is additional string connected to "?" sign without(!) spaces.
In your editor.bar file Notepad definition looks like:
cmd1=NOTEPAD.EXE
param1=%A
You can put "?" (separated by spaces!) in the param1 before or after "%A"
param1=%A ?
param1=? %A
In addition you can set prompt string:
param1=?"Enter filename" %A
djk wrote:Can you really put %Commender_path% as a part of path to the .bar file? Like this: "%commander_path%\new.bar -$" ? I haven't been able to do it
can be really easily solved by moving the parameter to command line as suggested Lefteous here.
2VadiMGP
About the menu location: Could you call GetCursorPos() as the very first function in your plugin, before loading all the icons? This way the menu will appear where it is expected, and not moved down when the mouse was moved after clicking the button. Thanks!
2ghisler(Author)
TCmenu (and TCtoolbar too) written in MFC. Currently GetCursorPos() called in the first line of InitInstance(). Obviously, it done before reading bar file. Even if i'll move GetCursorPos() into global application constructor the time difference will be several msec only.
BTW i spend lot of time on this problem in TCToolbar and only solution i found (bad solution from my point of view) is enumerate child windows of TC to find "TButtonBar" and attach my button bar below. This solution allows at least avoid vertical mouse movement.
If you have another suggestion i'll be glad to hear.
Yes, MFC makes it necessary to load a few dlls (when using dll link mode) or big internal code, so this causes a delay. I also don't have any better idea, sorry.