popup like alert("...");
-
On 11/10/2013 at 14:21, xxxxxxxx wrote:
User Information:
Cinema 4D Version: r14
Platform: Windows ;
Language(s) : C++ ;---------
Hi there,i am wondering if and how it is possible to add a simple dialog box to an object plugin. just a window with a message and an "ok"-button.
any input highly appreciated
thanks in advance,
Ello -
On 11/10/2013 at 15:13, xxxxxxxx wrote:
Hi ello,
you can catch the press of a button on your object's description (parameters in the AM) by
overriding NodeData::Message() and catching the MSG_DESCRIPTION_COMMAND message.>
> Bool MyObjectPlugin::Message(GeListNode* node, LONG type, void* p_data) {
> if (type == MSG_DESCRIPTION_COMMAND) {
> DescriptionCommand* data = reinterpret_cast<DescriptionCommand*>(p_data);
> if (data && data->id == MYOBJECTPLUGIN_BUTTON) {
> MessageDialog("My Button was pressed!");
> }
> }
>
> return SUPER::Message(node, type, p_data);
> }Messages are sent from the main thread. You can safely perform GUI operations.
Best,
-Niklas -
On 11/10/2013 at 15:29, xxxxxxxx wrote:
thank you very much!
-