SDKBrowser Control
-
On 12/05/2017 at 16:16, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 16
Platform: Windows ;
Language(s) : C++ ;---------
Hi,I'm working on a plugin that opens a Content Browser window pointing to a path that I provide. The code I've written for this portion works correctly but I need to have this path change if the user clicks different options in my plugin. Is it possible to change the path for the browser window after its been opened just using C++ code?
This is my code for opening the browser.
SDKBrowser *cb = NULL; DKBrowserURL url2(String("preset://bricktest2.lib4d")); cb->OpenNewBrowser(url2, 0);
As a second question is it possible to get access to the different display options in a browser window, such as the image display size and whether or not it is displaying as a Tree View?
One final question, can you dock a newly created browser window to a plugins GeDialog at its time of creation? I saw a post saying that it was impossible to dock a dialog into Cinema, is it also impossible to do with a new GeDialog?
Any help would be greatly appreciated.
Johan
-
On 15/05/2017 at 08:11, xxxxxxxx wrote:
Hi Johan,
actually we were a bit confused about your code snippet, as it looks like you are dereferencing a nullptr and we'd expected an immediate crash there...
Anyway, I don't think, what you are asking for is possible. It's basically the same issue as with the Attribute Manager. There can be multiple of these dialogs open and currently the API provides no means to get a handle of one distinct instance of these dialogs. -
On 15/05/2017 at 08:35, xxxxxxxx wrote:
Thanks for the response Andreas.
That's about what I was expecting, just wanted to make sure first.
Johan