THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/03/2012 at 09:36, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
I'm getting mixed messages about which method to use:
Descriptions(.res)
or
AddItem (cpp)
Here in these forums. Everybody(including Maxon employees) always, always, ALWAYS, say to use Descriptions.
However. Recently I've been having a LOT of trouble trying dynamically change dialog plugins with that method. I just can't get them to work at all.
For Tag & Object plugins. Descriptions work very well. But for dialogs I just can't get them to work.
Today I discovered the power of the c4d_gui.h file.
And with the help of the AsyncTest sdk example. I can now do all kinds of cool dynamic changes to my dialogs.
But...... These have to be done in the .cpp file. Not with external descriptions(AFAIK).
So I'm confused.
Here in the forums. Using AddItem in the .cpp files is considered bad practice and we should always use descriptions instead. Even on dialogs.
However..When it comes to changing dialogs dynamically. I don't see any way to use descriptions to change them. It doesn't even seem possible.
I've been trying to stick with descriptions (even with dialogs) as recommended. But it looks like I can't use them when it comes to dynamically changing dialog plugins. And I have no choice but to use the AddItem method.
Please clarify.
Thanks,
-ScottA