generate wxMoveEvent from wxPopupWindow::DoSetSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -176,12 +176,12 @@ void wxPopupWindow::DoSetSize( int x, int y, int width, int height, int sizeFlag
|
|||||||
|
|
||||||
ConstrainSize();
|
ConstrainSize();
|
||||||
|
|
||||||
if ((m_x != -1) || (m_y != -1))
|
if (m_x != old_x || m_y != old_y)
|
||||||
{
|
{
|
||||||
if ((m_x != old_x) || (m_y != old_y))
|
gtk_window_move(GTK_WINDOW(m_widget), m_x, m_y);
|
||||||
{
|
wxMoveEvent event(wxPoint(m_x, m_y), GetId());
|
||||||
gtk_window_move( GTK_WINDOW(m_widget), m_x, m_y );
|
event.SetEventObject(this);
|
||||||
}
|
HandleWindowEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((m_width != old_width) || (m_height != old_height))
|
if ((m_width != old_width) || (m_height != old_height))
|
||||||
|
Reference in New Issue
Block a user