Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Help button / text

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 306 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        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.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 05/11/2010 at 11:52, xxxxxxxx wrote:

          Beautiful.
          Thank you very much.
          I will post my first plugin very soon.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post