theainur
28-01-2009 18:32:35
Hello,
I'm tying to make a chat box for my application with MyGUI and I get an error during the building process ^^
Here are the headers of the methods I call:
I think I use the right signature for my methods, however I still get this error for the line
"mComboChat->eventComboAccept = MyGUI::newDelegate(this, &CLASS::notifyComboChatAccept);"
"no match for 'operator=' in '((CLASS*)this)->CLASS::mComboChat->MyGUI::ComboBox::eventComboAccept =
MyGUI::delegates::newDelegate [with TObj = CLASS, TP1 = MyGUI::Widget*, TP2 = size_t](this, &CLASS::
notifyComboChatAccept)'|"
thanks
I'm tying to make a chat box for my application with MyGUI and I get an error during the building process ^^
mComboChat = mGUI->findWidget<MyGUI::ComboBox>("comboChat");
mButtonChat = mGUI->findWidget<MyGUI::Button>("buttonEnvoyer");
mComboChat->eventComboAccept = MyGUI::newDelegate(this, &CLASS::notifyComboChatAccept);
mComboChat->eventKeyButtonPressed = MyGUI::newDelegate(this, &CLASS::notifyButtonChatPressed);
mButtonChat->eventMouseButtonClick = MyGUI::newDelegate(this, &CLASS::notifyMouseButtonChatClick);
Here are the headers of the methods I call:
void CLASS::notifyMouseButtonChatClick(MyGUI::WidgetPtr _sender)
...
void CLASS::notifyComboChatAccept(MyGUI::ComboBoxPtr _sender, size_t _index)
...
void CLASS::notifyButtonChatPressed(MyGUI::WidgetPtr _sender, MyGUI::KeyCode _key)
...
I think I use the right signature for my methods, however I still get this error for the line
"mComboChat->eventComboAccept = MyGUI::newDelegate(this, &CLASS::notifyComboChatAccept);"
"no match for 'operator=' in '((CLASS*)this)->CLASS::mComboChat->MyGUI::ComboBox::eventComboAccept =
MyGUI::delegates::newDelegate [with TObj = CLASS, TP1 = MyGUI::Widget*, TP2 = size_t](this, &CLASS::
notifyComboChatAccept)'|"
thanks