THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/09/2004 at 06:41, xxxxxxxx wrote:
Cinema 4D Version: 8.503
Platform: Windows ;
Language(s) : C++ ;
how can I prevent my GeDialog from being opened severeal times?
I only want one Dialog Instance opened at a time...
On 10/09/2004 at 12:13, xxxxxxxx wrote:
Depends on how it is opened. If you explicitly call mydialog.Open() to open it, you can do a check to see if it is already opened:
On 12/09/2004 at 12:27, xxxxxxxx wrote:
Hm.. it is opened by the user... think this is not the solution i was looking for...
On 12/09/2004 at 12:41, xxxxxxxx wrote:
But how is it opened by the user? Is there not a single call to Open() in your source? Not even PluginStart() or the plugin's Execute()? Since there is no dialog plugin type, it is not a direct call completely beyond your code's ability to check.
Source code would be very helpful to see how the dialog Open() gets called (and believe me it is done somewhere, even if not in your code).