THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/11/2009 at 07:40, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5
Platform: Windows ;
Language(s) : C++ ;
---------
Hi.
I have programmed a CommandData Plugin. Now I want the user to enter parameters using a modal dialog.
So from the Execute() of the CommandData I call the Dialog and wait for the OK. But how can I access the values (like EDITNUMBER fields) in the modal dialog then?
I have tried (simplified) :
if (dlg.Open())
{
dlg.GetLong(ID_DLG_VALUE, variable)
}
GePrint(LongToString(variable));
In this example variable always is zero, regardless from what I put in the EDITNUMBER field DLG_VALUE. I assume this field cannot be read anymore after the dialog is closed ... but how can I access the fields then otherwise?
Regards,
Juergen