Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/11/2010 at 03:20, xxxxxxxx wrote:
User Information: Cinema 4D Version: 11.5 Platform: Windows ; Language(s) : C.O.F.F.E.E ;
--------- I would like to add a Help button to my menu to show multiple line of help text. Is there a standard way for showing help or should I use MenuPlugin::GetHelp() for this? I am not sure how to use this function. Can anyone explain?
On 05/11/2010 at 04:33, xxxxxxxx wrote:
Assuming you have a dialog box for your plugin, and that it has a menu in it, you can just respond to the menu item the user selects like this:
plugin_gui::Command(id, msg) { switch(id) { case WHATEVER_THE_MENU_ID_IS_HERE: // show a simple help box var strHelp; strHelp = "Using this plugin\n\n"; strHelp += "A line of text goes here\n"; strHelp += "with another line of text here\n"; strHelp += "And another here, and so on\n"; // show a text box TextDialog(strHelp, DLG_ICONASTERISK | DLG_OK); break; case WHATEVER_THE_NEXT_MENU_ID_IS: // show the main help file as a pdf var file; file = GeGetRootFilename(); if (!file) return; file->RemoveLast(); file->AddLast("myplugin.pdf"); GeExecuteFile(file); // load the pdf break; } }
Hope that helps.
On 05/11/2010 at 11:52, xxxxxxxx wrote:
Beautiful. Thank you very much. I will post my first plugin very soon.