Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/04/2006 at 20:26, xxxxxxxx wrote:
User Information: Cinema 4D Version: 9.521 Platform: Windows ; Language(s) : C++ ;
--------- Hi, I would just like to set the CustomGui Filename that was created with ResEdit to a specified directory. It defaults to nothing, but I would like to default it to a directory. I have failed at every attempt at setting this field, so any help would be much appreciated. I know it deals with FindCustomGui from the GeDialog class but the SDK docs don't seem to explain how to set the data of a customgui element. Thanks in advance for any help. -Josh-
On 02/04/2006 at 12:49, xxxxxxxx wrote:
The underlying datatype of CUSTOMGUI_FILENAME is simple Filename. So you can put a Filename into a GeData and then do customgui->SetData(data), i.e. calling the BaseCustomGui function for setting data.
On 03/04/2006 at 17:12, xxxxxxxx wrote:
Thanks for the help Mikael. I am still getting confused from the point of calling FindCustomGui(). Should I be converting that to a Filename* or BaseCustomGui*? With the following code:
FilenameCustomGui *scg = (FilenameCustomGui* )FindCustomGui(IDC_SCENEDIR_FIELD, HYBRIDNETGUI_ID); scg->SetData(GeData(String("\\Fats\SharedDocs")));
how can I set the directory that was created with ResEdit (IDC_SCENEDIR_FIELD) to the directory [\\Fats\SharedDocs](file://\\Fats\SharedDocs)? As always any help would be much appreciated. -Josh-
On 03/04/2006 at 18:56, xxxxxxxx wrote:
Perhaps,
scg->SetData(GeData(Filename("\\\\Fats\\SharedDocs")));