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

    IDs and user resources

    SDK Help
    0
    7
    810
    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 26/02/2003 at 05:04, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      How are the IDs of GUI elements assigned or obtained? for example using the UserDialog class:

      MyDialog::CreateLayout()
      {
      SetTitle("My Dialog");
      AddGroupBeginV(100010, 0, 1, "", 0);
      AddGroupSpace(4, 4);
      AddGroupBorderSpace(4, 4, 4, 4);
          AddStaticText(100011, 0, 0, 0, "Hello World!", 0);
      AddGroupEnd();
      AddDlgGroup(OK + CANCEL);

      return TRUE;
      }

      are the IDs for AddGroupBegin = 1000010 or AddStaticText = 100010 listed somewhere or can I use my own values?

      Thanks

      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 26/02/2003 at 11:04, xxxxxxxx wrote:

        You can use your own values or assign them to a name in a dialog resource file and obtain them using GeLoadString() (of course, after having established resources).
        Robert

        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 26/02/2003 at 13:10, xxxxxxxx wrote:

          The best way is to use constants in the c4d_symbols.h file. See the examples.

          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 26/02/2003 at 21:32, xxxxxxxx wrote:

            Aha, and it does´nt matter if I´m using the symbols in c4d_symbols.h in COFFEE and not C++?

            thank you very much Robert and Mikael

            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 26/02/2003 at 23:18, xxxxxxxx wrote:

              No, c4d_symbols.h is used by both. (You have to include it in the file though with #include "c4d_symbols.h" in C++ and include "c4d_symbols.h" in C.O.F.F.E.E.)

              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 27/02/2003 at 05:13, xxxxxxxx wrote:

                Sorry to be a bore Mikael; I just downloaded the c4d_symbols.h, there were absolutely no IDs in the file(in both the 6 and 7 versions). Where can I donload this file with all the IDs listed? Or maybe I was misunderstood?
                Example:
                AddGroupBeginV(100010, 0, 1, "", 0);

                using the AddGroubBeginV() method, the first parameter is an ID, "100010". I´d like to know where these IDs are derived from.

                Thanks

                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 27/02/2003 at 13:10, xxxxxxxx wrote:

                  Aargh, major confusion... 🙂
                  c4d_symbols.h is a file you write yourself, not some file you can download and use. Please see these pages from the documentation for a run-down on the various resource files: <[URL-REMOVED]#directory>, <[URL-REMOVED]>
                  Otoh, as I read your questions again, it seems you already visited the docs and the questions is something else. Those 100010 IDs are just hard coded instead of put in c4d_symbols.h, to create a self-contained example. (All IDs above 10000 are allowed.)
                  I recommend the resource method shown in the second of the two links above, under "Layout files".


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

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