CUSTOMGUI_TEXTURENAME
-
On 19/12/2013 at 07:32, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15
Platform: Windows ;
Language(s) : C++ ;---------
I want to use theCUSTOMGUI_TEXTURENAME
[URL-REMOVED]
However I do not see the little arrow in front of the field and I do not see the icon of the selected texture. See below.
I tried setting some sttings, but nothin works.
What to do?BaseContainer textgui; textgui.SetBool(FILENAME_TEXTURE, true); textgui.SetBool(LINKBOX_HIDE_ICON, false); myTxtfile = (TexturenameCustomGui* )AddCustomGui(1010, CUSTOMGUI_TEXTURENAME, "", BFH_SCALEFIT, 0, 0, textgui);
[URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
-
On 19/12/2013 at 13:17, xxxxxxxx wrote:
Hi Pim,
you can expand the widget by calling BaseCustomGui::SetLayoutMode(LAYOUTMODE_MAXIMIZED). You can
get the address of the BaseCustomGui from GeDialog::AddCustomGui() or GeDialog::FindCustomGui().PS: The SetLayoutMode() method is not available in Python.
Best,
-NiklasEDIT: You need to call this after, not in, CreateLayout() (eg. InitValues())
-
On 19/12/2013 at 23:17, xxxxxxxx wrote:
Thanks, I'll give it a try and report back.
-
On 19/12/2013 at 23:27, xxxxxxxx wrote:
And it works!
All I had to add was myTxtfile->SetLayoutMode(LAYOUTMODE_MAXIMIZED);
Only the little 'fold' arrow is missing in front of the field, but perhaps I can 'simulate' that by using this same function.