(new in Rev4.30)
MQPopup class manages a popup that contains menus and so on. It inherits MQWidgetBase - MQWindowBase class.
Please refer the inherited class about member functions declared in the inherited class.
| Class | |
| MQPopup | Constructor |
| ~MQPopup | Destructor |
| Member functions | |
| CreateMenuItem | Create a menu item |
| CreateSubMenuItem | Create a child menu item |
| GetPreferredSidePosition | Get a side position for a widget |
| ShowPopup | Show a popup |
| GetShadow | Get a shadow |
| SetShadow | Set a shadow |
| GetOverlay | Get an overlay |
| SetOverlay | Get an overlay |
MQPopup::MQPopup();
MQPopup::MQPopup(int id);
MQPopup::MQPopup(MQWindowBase& parent);
It is a constructor.
virtual MQPopup::~MQPopup();
This method is a destructor. It is defined as a virtual function.
MQMenuItem *MQPopup::CreateMenuItem(const std::wstring& text);
It creates a menu displayed in the popup.
MQMenuItem *MQPopup::CreateSubMenuItem(MQMenuItem *parent, const std::wstring& text)
It create a child menu under the parent.
void MQPopup::GetPreferredSidePosition(int& x, int& y, int& w, int& h, MQWidgetBase *widget, bool horz);
It returns a preffered position for displaying beside the specified widget.
void MQPopup::ShowPopup(int screen_x, int screen_y);
It shows a popup at the specified position.
A popup displaying is performed as a modal procedure, and the procedure returns when a popup is closed.
bool MQPopup::GetShadow();
It returns whether a shadow is displayed or not behide the popup.
void MQPopup::SetShadow(bool value);
It specifies whether a shadow is displayed or not behide the popup.
bool MQPopup::GetOverlay();
It returns whether a popup is overlaid or not.
void MQPopup::SetOverlay(bool value);
It specifies whether a popup is overlaid or not.