open DLG_TYPE_ASYNC always with default size
-
On 12/11/2014 at 03:40, xxxxxxxx wrote:
Hi
in my plugin, I have:
self.dialog.Open(c4d.DLG_TYPE_ASYNC, PLUGIN_ID, defaultw=200, defaulth=50)
if in Cinema 4D I modify the size with drag and close the plugin, if I restart the plugin, the size are the last dragged size...
they are not: defaultw=200, defaulth=50
Is possible, restart always the plugin with default size?
Thanks
-
On 12/11/2014 at 07:28, xxxxxxxx wrote:
Nope. And it's annoying.
I did discover a "trick" to re-set the window a while back by quickly changing your layout to another one. Then back again.
Unfortunately, The layouts are not very well supported in the SDKs. We can't even get the current layout. So there's no way to get back to your original layout after switching to a different one temporarily.Niklas said he might know of a way to handle that issue with some kind of hack.
But Maxon wouldn't let him tell us.-ScottA
-
On 12/11/2014 at 07:51, xxxxxxxx wrote:
Hello,
There is no direct way to edit the size of an asynchronous dialog. A feature of asynchronous dialogs is that you can add them to your layout like the Attribute Manager or the Object Manager. When you change the layout, Cinema will resize the dialog accordingly. In such a situation (when the dialog is actually a panel) resizing the dialog would not make sense.
best wishes,
Sebastian -
On 12/11/2014 at 14:20, xxxxxxxx wrote:
^There are times when you would like to re-set it back to it's default size.
It would be nice to have an option to re-set the window's size back to it's coded values.-ScottA