Add element to GeDialog Group
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/09/2008 at 12:19, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform:
Language(s) : C++ ;---------
Hi!is it possible to add an element to a dialog group, even if the dialog is created?
thanks
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/09/2008 at 16:39, xxxxxxxx wrote:
Yes. Use LayoutFlushGroup() and LayoutChanged() as bookends to a group you want to change. Don't call CreateLayout() though. Have CreateLayout() call a method that does the group element setup between the GroupBegin()/GroupEnd() of the group that will be changed. Have another method called to do later flushes and resetting (LayoutMyGroup() in this case) :
//*---------------------------------------------------------------------------*
Bool CreateLayout()
//*---------------------------------------------------------------------------*
{
...
GroupBegin(GROUP_MYGROUP,BFH_SCALEFIT|BFV_SCALEFIT,0L,2L,String(""),0L);
{
CreateMyGroupElements();
}
GroupEnd();
...
}
// Relayout MyGroup
//*---------------------------------------------------------------------------*
void LayoutMyGroup()
//*---------------------------------------------------------------------------*
{
LayoutFlushGroup(GROUP_MYGROUP);
CreateMyGroupElements();
LayoutChanged(GROUP_MYGROUP);
}
// Create MyGroup Elements
//*---------------------------------------------------------------------------*
void CreateMyGroupElements()
//*---------------------------------------------------------------------------*
{
AddButton(blah, blah);
...
} -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/09/2008 at 17:07, xxxxxxxx wrote:
Hi kuroyume0161,
thanks for your reply. Yes, I tried it and it works, do you have an idea how to add a element without deleting the content of the group?
I would like to have an insertion point at the end of the group without deleting the elements before.
Bye
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/09/2008 at 17:23, xxxxxxxx wrote:
Use a group around just that element. You can do this with any group and there really isn't much penalty for things like lots of groups with one or few elements in each. Even an empty group at first can be filled or emptied as needed. As you can see, the only thing required is a group ID for reference.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/09/2008 at 02:22, xxxxxxxx wrote:
Hi!
Thanks, thats a goood idea. thanks ..