Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    AddGadget ( ?? )

    SDK Help
    0
    6
    562
    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
      Helper
      last edited by

      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

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

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

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

          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 ^_^

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

            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! 🙂

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

              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.....
              -_^

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

                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();
                }

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