CustomProperty *GetProperties()
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/11/2003 at 07:43, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.207
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
I do not understand the following function. What do the properties returned denote? Are they the custom parameters for each resource symbol that are defined post index ( MIN or MAX for example )?
Regards,
Thomas Cray
**virtual CustomProperty * GetProperties() **Return the properties that this data type accepts in resource files. This is a pointer to a global array of CustomProperty structures, which is the easiest to create with direct initialisation like this:CustomProperty bitmapbuttonprops[] =
{
{ CUSTOMTYPE_FLAG, BITMAPBUTTON_BORDER, "BORDER" },
{ CUSTOMTYPE_FLAG, BITMAPBUTTON_BUTTON, "BUTTON" },
{ CUSTOMTYPE_END, 0, NULL }
};See CustomProperty for more information.
**
Return
**
CustomProperty *
Pointer to a global array of CustomProperty, ended with a CUSTOMTYPE_END property. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/11/2003 at 08:32, xxxxxxxx wrote:
The properties you define will be read by C4D's resource parser. In the example you can specify the flags "BORDER" and "BUTTON" in a resource description. When the parser finds "BORDER" it will set the BITMAPBUTTON_BORDER flag.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/11/2003 at 09:45, xxxxxxxx wrote:
Thank you for your response.
What purpose do these serve? I posted an earlier message where I inquired about this in the context of the ExampleDataType. I have successfuly created new data types but have yet to get functioning code for the CustomGUI. Should I start posting that code here and asking direct questions?
Regards,
Thomas Cray
www.cidertank.com -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/11/2003 at 14:05, xxxxxxxx wrote:
The purpose of CustomProperties is to move the description of your item from code to the resource, which speeds up work and is more flexible. You can use the resource e.g. to change MIN/MAX values without the need to recompile your plugin again.
About your customgui - I'd try to post some source, maybe someone of us can help you with it!