I was just going through the standard dialogs in the Python API like MessageDialog etc (https://developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d.gui/index.html?highlight=selectionlistdialog#c4d.gui.SelectionListDialog ; most of which do not exist in this form in the C++ API), and there are some questions open...
GEMB_FORCEDIALOGis unexplained (well, the explanation is "Forces dialog"). What does it actually do? I tried it in a script and see no change whether I use it or not.
When does a MessageDialog return
GEMB_R_UNDEFINED? (Does it ever?)
The input dialog shows an OK and a Cancel button and can be closed with the Window Close icon. But it always returns the input string, other than RenameDialog which looks almost the same but returns
Noneif the user presses Cancel.
To be fair, the description does say that (no screenshot though). But what is the Cancel button for, then?
The ColorDialog has ominous Flags as first parameter. The doc doesn't say which flags. I have found that you can use (some of) the
DR_COLORFIELD_xxxflags to hide some parts of the color gadget (most of the
_NO_ones), but not all of them. The ColorDialog always opens in the mode it was closed in; the
_ENABLE_flags do not affect the state.
Is there a list of the flags that actually take effect? Maybe there are more than just
The SelectionListDialog has an X and a Y coordinate in the parameters. They don't seem to do anything, though? The menu always open at the mouse position. I would use c4d.MOUSEPOS, as for ShowPopupDialog, but the doc doesn't mention that.
(Using the newest online docs here.)
Thanks for information on these points!