This function is called by the event handling system everytime the user has moved or clicked the mouse. So if you want a window which reacts to the mouse in a specific way, you can inherit a class from Window. Another method to implement mouse behaviour is to use a window listener (in this case you have to inherit a class from WindowListener and attach it to this window, see WindowListener for more details) Reimplemented from OglGui::Window. Definition at line 42 of file SelectionCollectionItem.h. References ILOG_USER, mContextMenu, mId, mListener, OglGui::Menu::Open(), Impala::Application::MediaTable::SelectionCollectionListener::SelectCollectionEvent(), and OglGui::OglWindow::ToTopWindow(). 00043 { 00044 if (mListener && msg == oglMouseUp && but == oglLeftButton) 00045 { 00046 ILOG_USER("Select Collection " << mId); 00047 mListener->SelectCollectionEvent(mId); 00048 } 00049 if (msg == oglMouseDown && but == oglRightButton) 00050 { 00051 int rx=0, ry=0; 00052 ToTopWindow(this, rx, ry); 00053 mContextMenu->Open(rx+x,ry+y); 00054 } 00055 }
Here is the call graph for this function:
|