gedialog open



  • 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



  • 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

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



  • 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.



  • 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


Log in to reply