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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    gedialog open

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 321 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 15/02/2008 at 08:36, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      Bool Open(Bool async, LONG pluginid, LONG xpos = -1, LONG ypos = -1, LONG defaultw = 0, LONG defaulth = 0, LONG subid = 0) = 0
      First question:  This is the function as it appears in the SDK.  Why is the function set to =0?  I have a similar gap in understanding when the SDK has functions like this:  Bool Func(x,y)const.  What is the prupose of constant here?
      Second:  I was momdifying the COFFEE code below just to see what happens.  In this code the Open function works with 3 arguments but not when I use the arguments as listed in the SDK(7).

      const var cPluginID = 2000002;
      var gDial;
      // --- GeDialog
      class oDialog : GeDialog
      { public:
      oDialog();
      CreateLayout();
      }
      oDialog::oDialog() { super(cPluginID); }
      oDialog::CreateLayout()
      { SetTitle("coffee-lesson-4");
      AddEditNumberArrows(0,BFH_FIT,80,0);
      return TRUE;
      }
      // --- MenuPlugin
      class oMenuPlugin : MenuPlugin
      { public:
      oMenuPlugin();
      GetID();
      GetName();
      GetHelp();
      Execute(doc);
      RestoreLayout(secret);
      }
      oMenuPlugin::oMenuPlugin() { super(); }
      oMenuPlugin::GetID() { return cPluginID; }
      oMenuPlugin::GetName() { return "coffee-lesson-4"; }
      oMenuPlugin::GetHelp() { return "A Dialogbox"; }
      oMenuPlugin::Execute(doc)
      { if (!gDial) gDial=new(oDialog);
      gDial->Open(TRUE,1600,100);
      }
      oMenuPlugin::RestoreLayout(secret)
      { if (!gDial) gDial=new(oDialog);
      gDial->RestoreLayout(secret);
      }
      main()
      { Register(oMenuPlugin);
      }

      Thanks,  Mike

      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 15/02/2008 at 09:25, xxxxxxxx wrote:

        Again, don't confuse the C++ documentation with the COFFEE documentation. These are two different languages with different SDKs. At this link:

        docs[URL-REMOVED]

        You want to download the COFFEE SDK 95.zip (Mac) or COFFEE SDK 95.chm (Windows).


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

        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 15/02/2008 at 09:44, xxxxxxxx wrote:

          Thank you, Robert.

          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 15/02/2008 at 09:45, xxxxxxxx wrote:

            Thank you,  Robert

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