THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/08/2008 at 07:06, xxxxxxxx wrote:
Cinema 4D Version: 11
Language(s) : C++ ;
Does anyone know how to make a group dockable to the c4d gui? Like the console input line, you can drag and drop it without oving the whole dialog.
On 14/08/2008 at 02:28, xxxxxxxx wrote:
i dont think this is possible with groups, and i'd guess the console and the command line are actually two different windows, so thats why you can undock the command line..
On 14/08/2008 at 02:32, xxxxxxxx wrote:
Do you have an idea, how its solved with two different Dialogs? I cant find out, how it's done.
If someone doesn't know what I want to do:
On 14/08/2008 at 02:43, xxxxxxxx wrote:
actually im not quite sure what the problem is
its just two seperate dialogs, afaict..
so to get a dockable/undockable dialog, you'd just create a normal dialog with some api-function/class and your done
i wouldnt really know though, as i dont do very much dialog stuff..
if you want to know how to create a dialog, you should check out the sdk examples, there should be code for that in there.
On 14/08/2008 at 02:51, xxxxxxxx wrote:
I know how to create a Dialog and how to create a asynchronous dialog. Perhaps I did not explain my problem good enough.
The problem is, in the case of the console, how its possible to undock a gadget, that does not seem to be another dialog.
I marked the points, what I ment.. Normally the second red dot is not avaible, so the question is, how to create such a hook to make a gadget dockable to the c4d gui.
And if the console line is a different dialog, how is it possible to combine them to get this effect.
On 14/08/2008 at 02:57, xxxxxxxx wrote:
i think they are just two different dialogs, arranged one after another by default, just like the timeline is below the viewport by default, and they are not combined in any special way.
but maybe im wrong..
On 14/08/2008 at 06:06, xxxxxxxx wrote:
So you think for me as third party developer its not possible to get such effect?
On 14/08/2008 at 08:14, xxxxxxxx wrote:
The console is a dialog window not a gadget in a dialog. All of the Cinema 4D dockable/undockable elements are asynchronous dialogs. In order to make a dialog dockable/undockable (and have this state remembered with the layout) you need to implement CommandData::RestoreLayout() calling your dialog's RestoreLayout() as explained in the SDK docs.
Menus can be made floatable and dockable - but this turns the menu into a palette window (still a dialog window where the menuitems are now gadgets).