IDs and user resources

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

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

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.

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

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

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

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: http://www.plugincafe.com/sdk_detail.asp?ID=39819#directory, http://www.plugincafe.com/sdk_detail.asp?ID=39816
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".