THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/03/2004 at 07:24, xxxxxxxx wrote:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;
I created a dialog using the ResEdit Plugin (V 1.7). This dialog's resource file includes a FileSelector field:
After selecting a file using this GUI there's a value shown in the edit-field but I cant't get the shown Filename for further usage.
I tried this code to get the Filename but using this code had no success:
GetFilename(FILSELECTOR_ID, file); //from GeDialog
Why I don't get the Filename from the field? Is there any other way?
On 10/03/2004 at 02:09, xxxxxxxx wrote:
No, that is the way it's supposed to work. What does the function return? (And is anything put at all into the "file" variable?)
On 10/03/2004 at 02:29, xxxxxxxx wrote:
The function returns TRUE but the 'file' variable contains nothing.
I checked it with file.Content() but it always returns FALSE.
For now I did a workaround:
I'm using an edit-field and a button instead of the FileSelector field. That's not fine but it works.
But if you have any idea what's going wrong, please let me know.
On 17/03/2005 at 08:30, xxxxxxxx wrote:
Having this same issue. Too bad it was never resolved. Does that mean it was a bug?
On 17/03/2005 at 09:43, xxxxxxxx wrote:
I doubt it works. The docs for GetFilename say:
Retrieves the text from string controls as a filename.
This is not support for filename customguis!
Get the customgui with FindCustomGui and retrieve the filename like this:
path = fngui- >GetData().GetValue().GetFilename();
Hope that helps.