AddGadget ( ?? )



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

    On 18/11/2005 at 09:23, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9.5 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi,
    in operatingsystem.h exixts one member of the follow struct that nowhere (in help or manuals) explains the contents (par1 ? par2 ? ....)
    -_-
    struct C4D_Dialog
    {
    (...)
    Bool (*AddGadget )(CDialog *cd, LONG type, LONG id, const String *name, LONG par1, LONG par2, LONG par3, LONG par4, const BaseContainer *customdata, void **resptr);
    (...)
    }
    Somebody knows somethings ???
    Thx



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

    On 18/11/2005 at 10:54, xxxxxxxx wrote:

    This is more than likely an internal method only, especially being within operatingsystem.h and being a pointer to a method and not a method itself (probably so that it can be used to access an array of methods for adding individual Gadget types to a dialog).

    That's about all that I can tell you. :)



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

    On 21/11/2005 at 01:34, xxxxxxxx wrote:

    Thx for your answer kuro ^_^,
    but I think that this "command / pointer" it's interesting & powerful.
    Look in the example "asynctest.cpp": addgadget puts the gadget in the strange position .... if u prove to "comment" this C4DOS.cd(...) the addcheckbox will be in another position ....
    I NOT found in the old HELP releases how workin' ...
    I hope that any strong Maxon programmer's will knows ....
    Bye kuro ^_^



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

    On 21/11/2005 at 04:08, xxxxxxxx wrote:

    I don't really see what is so 'powerful' about it. It adds the check box to the menubar. Okay, interesting.

    It may prove useful for nonstandard layouts, but I haven't seen any comments on this. The most probable reason for not being in the HELP is that it is not a feature expected to be used by plugin developers. Most of the time anything that starts with C4DOS is discouraged as this is the lowest level of the SDK (and Cinema 4D). It may change without notice and you'd be screwed if it did! Fair warning.

    Take care, Korki! :)



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

    On 21/11/2005 at 04:19, xxxxxxxx wrote:

    Infact ... put somethink in toolbar ! @_@
    Dear kuro ... I'll make some experiment (with carefull be sure...) I'm very curious !
    If u think that it's possible to manager the toolbar more than Help documentation tell us .... (Everybody simply resolves any problems for add a submenus in toolbar or add commands and so on).
    Only if I understand that C4D minds for par1, par2, ecc.....
    -_^



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

    On 22/11/2005 at 04:01, xxxxxxxx wrote:

    Up ... dear kuro: how it's simply to add e menu (&submenu) in toolbar !
    ^_^ 
    C4DOS.Cd->AddGadget(Get(),DIALOG_MENUGROUPBEGIN,0,NULL,0,0,0,0,NULL,NULL);
    {
    MenuFlushAll();
    MenuSubBegin("Menu 1");
    (...)
    MenuSubEnd();
    MenuSubBegin("Menu 2");
    (...)
    MenuSubEnd();
    MenuSubBegin("Menu 3");
    (...)
    MenuSubEnd();
    MenuFinished();
    }


Log in to reply