wxDialog::IsModal() works
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e8b591249e
commit
22cf5fec15
@ -89,8 +89,7 @@ public:
|
|||||||
void SetModal(bool flag);
|
void SetModal(bool flag);
|
||||||
|
|
||||||
virtual void Centre(int direction = wxBOTH);
|
virtual void Centre(int direction = wxBOTH);
|
||||||
virtual bool IsModal() const
|
virtual bool IsModal() const;
|
||||||
{ return ((GetWindowStyleFlag() & wxDIALOG_MODAL) == wxDIALOG_MODAL); }
|
|
||||||
|
|
||||||
// For now, same as Show(TRUE) but returns return code
|
// For now, same as Show(TRUE) but returns return code
|
||||||
virtual int ShowModal();
|
virtual int ShowModal();
|
||||||
|
@ -278,7 +278,12 @@ void wxDialog::GetPosition(int *x, int *y) const
|
|||||||
|
|
||||||
bool wxDialog::IsShown() const
|
bool wxDialog::IsShown() const
|
||||||
{
|
{
|
||||||
return m_isShown;
|
return wxModalDialogs.Find(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxDialog::IsModal() const
|
||||||
|
{
|
||||||
|
return wxModalDialogs.
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDialog::Show(bool show)
|
bool wxDialog::Show(bool show)
|
||||||
|
Loading…
Reference in New Issue
Block a user