THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/08/2009 at 02:31, xxxxxxxx wrote:
Quote: _Does this help or should I still show the problem, Matthias?
>
> * * *
_
Yes, please provide some code, maybe the dialog framework.
It is working without problems in my tests.
> \> include "c4d_symbols.h" \> \> \> // be sure to use a unique ID obtained from www.plugincafe.com \> var PLUGINID = 1000158; \> // be sure to use a unique ID obtained from www.plugincafe.com \> \> \> // definition of my dialog class \> class MyDialog : GeDialog \> { \> public: \> MyDialog(); \> \> CreateLayout(); \> Command(id,msg); \> Message(msg); \> \> private: \> var res; \> } \> \> MyDialog::MyDialog() \> { \> super(PLUGINID); \> \> var root = GeGetRootFilename(); \> root->RemoveLast(); \> res = new(GeResource, root); \> } \> \> MyDialog::Message(msg) \> { \> // switch (msg->GetId()) \> { \> } \> return super::Message(msg); \> } \> \> MyDialog::CreateLayout() \> { \> return LoadDialogResource(GUI_DEMO, res, 0); \> } \> \> MyDialog::Command(id,msg) \> { \> // switch (id) \> { \> } \> } \> \> \> class MyMenuPlugin : MenuPlugin \> { \> public: \> MyMenuPlugin(); \> \> GetID(); \> GetName(); \> GetHelp(); \> Execute(doc); \> \> RestoreLayout(secret); \> } \> \> MyMenuPlugin::MyMenuPlugin() \> { \> super(); \> } \> \> MyMenuPlugin::GetID() \> { \> return PLUGINID; \> } \> \> MyMenuPlugin::GetName() \> { \> return "Gui Demo"; \> } \> \> MyMenuPlugin::GetHelp() \> { \> return "Demonstrates usage of various GUI elements"; \> } \> \> var d; \> \> MyMenuPlugin::Execute(doc) \> { \> d->Open(TRUE,-1,-1); \> } \> \> MyMenuPlugin::RestoreLayout(secret) \> { \> if (!d) d = new(MyDialog); \> d->RestoreLayout(secret); \> } \> \> \> main() \> { \> d = new(MyDialog); \> \> Register(MyMenuPlugin); \> } \>
cheers,
Matthias