MQWidget.Popup class

A popup class.

Super classes: MQWidget.WidgetBase - MQWidget.WindowBase

Property

get set Type Name Description
x x bool shadow a shadow display
x x bool overlay an overlay display

Method

Member Description
Popup Constructor.
getPreferredSidePosition Get a side position for a widget.
showPopup Show a popup at the specified position.

Popup([parent])

Constructor.

Parameters:
MQWidget.WindowBase parent - A parent window

getPreferredSidePosition(base_widget, horz)

Get a side position for a widget.

Parameters:
MQWidget.WidgetBase base_widget - A side widget
bool horz - horizontal
[True] Left or right
[False] Up or bottom
Return value:
list{int,int,int,int} - A list contains a width and a height

showPopup(screen_x, screen_y)

Show a popup at the specified position.

Parameters:
int screen_x - X coordinate in the screen
int screen_y - Y coordinate in the screen