Set DescriptionCustomGui size dynamically
-
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:
User Information:
Cinema 4D Version: 13
Platform:
Language(s) : C++ ;---------
Hi,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.
GroupBegin(DLG_Desc_GRP,BFH_SCALEFIT|BFV_SCALEFIT,1,0,"ShowProperties",BFV_GRIDGROUP_EQUALROWS); BaseContainer customgui; customgui.SetBool(DESCRIPTION_ALLOWFOLDING,TRUE); customgui.SetLong(DESCRIPTION_MODALMODE,1); desc = (DescriptionCustomGui* )AddCustomGui(DLG_DESCRIPTION,CUSTOMGUI_DESCRIPTION,String(),BFH_SCALEFIT,0,0,customgui); GroupEnd();
Driver tag's Link behavior is seem to be folding group however I wasn't able to find this example in SDK docs.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/11/2012 at 03:03, xxxxxxxx wrote:
Hi, spedler
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
<\resource\modules\xtensions\res\description\prefsnavigation.res>
~~~~~~ LONG PREF_NAVIGATION_CAMERA { ANIM OFF; CYCLE { PREF_NAVIGATION_CAMERA_CUR; PREF_NAVIGATION_CAMERA_CTR; PREF_NAVIGATION_CAMERA_OBJ; PREF_NAVIGATION_CAMERA_CAM; PREF_NAVIGATION_CAMERA_CUSTOM; } PARENTCOLLAPSE; } STATICTEXT {} LONG PREF_NAVIGATION_POI { ANIM OFF; CYCLE { PREF_NAVIGATION_POI_CTR; PREF_NAVIGATION_POI_OBJ; PREF_NAVIGATION_POI_CAM; } PARENTCOLLAPSE PREF_NAVIGATION_CAMERA; } ~~~~~~~~~
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 ?)
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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.