THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/11/2012 at 00:50, xxxxxxxx wrote:
Cinema 4D Version: 13
Language(s) : C++ ;
I want to make my dialog look like Driver tag's behavior.
It is part of my dialog.
Here is AddCustomGui part of my code.
desc = (DescriptionCustomGui* )AddCustomGui(DLG_DESCRIPTION,CUSTOMGUI_DESCRIPTION,String(),BFH_SCALEFIT,0,0,customgui);
Driver tag's Link behavior is seem to be folding group however I wasn't able to find this example in SDK docs.
On 12/11/2012 at 01:18, xxxxxxxx wrote:
That link box is standard behaviour for any link in C4D. Look at any link and you'll see that when you drop something in the box, the little arrow appears and gives you access to the interface of the object in the link field. You don't need a custom gui for this, just a standard LINK element.
The 'mode' combo box is given in the description resource, I would guess that in the code (it'll be in GetDDescription()) it's hidden until something is dropped into the link box. Then it is made visible.
On 12/11/2012 at 03:03, xxxxxxxx wrote:
Tag and Object are used Description resource. so, black arrow appear on the left Description's LinkBoxGUI.
But, if My manual layout method is right, black arrow does not appear Dialog resource's LinkBoxGUI
And, I found some code look like folding group
PARENTCOLLAPSE is make folded group that target element.
this case is PREF_NAVIGATION_CAMERA
then make black arrow button.
I guess, I need method version of C++ behave like a PARENTCOLLAPSE. (maybe add child ?)
On 12/11/2012 at 03:48, xxxxxxxx wrote:
I'm confused now. Are you trying to build a description or a dialog? The two are quite different and you can't use dialog elements in a description or the other way round.
PARENTCOLLAPSE is only used in descriptions. So if you're making a dialog I think you may be out of luck with that link field, and to get what you want you might need to write your own custom gui.
On 14/11/2012 at 00:05, xxxxxxxx wrote:
Sorry, I'm trying to build dialog.
I found some way to show all description that can resize depending on size of dialog
but, I want to know that the way to make folding group in dialog.