THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/05/2003 at 08:48, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
How do you get back the selected filename?
I have a dialog (manually cretead) that shows the filename I can't find and below it the customgui_filename box, which lets me browse to the file I need. But I can't get the selected file back.
Since I couldn't find an res for the container it uses, I tried creating both a string and a filename in id 0 of the container, to see if it would fill it in. No such luck! I assume I am using the basecontainer that I pass to the addcustomgui call, but I can't figure out how to get this last step to work. Is there some sample code showing how to recover data from a custom gui (I couldn't find anything in the docs or forum)? And how do you know what variables a customgui uses?
(My previous issue with the material containers was I was using the enums I found for the material class - MATERIAL_COLOR_COLOR etc instead of CHANNEL_COLOR). Works now!
David