GeModalDialog dynamic refresh
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/10/2005 at 03:41, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.102
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;---------
Hi,i want to change the content of some comboboxes depending on actions happening in the dialog. So i call the CreateLayout() functions after i made some changes in the Command() function.
The combobox now gets a new Item(it works).
-->The problem is, that the content of comboboxes multiplys with the content before.
Example:
Content: "1"->Add new Item "2" in Command(), call CreateLayout()
-->Content: "1","1","2"
-->addNewItem "3"
Content: "1","1","2","1","2","3"
....I hope you could understand the problem.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/10/2005 at 11:56, xxxxxxxx wrote:
CreateLayout() should never be called by your code. It is automatically called when the dialog opens (once and that is it).
If you need to make changes to dialog elements, use the methods in GeBaseDialog. For a ComboBox, use FreeItems() to remove the current list and AddItem() to put new ones in. Some others need LayoutFlushGroup() and LayoutChanged() - such as when adding/removing elements to the dialog.