Add wxHtmlHelpController::SetShouldPreventAppExit().
Add a method which can be used to indicate that the help window should prevent the application from exiting and use it in the help sample to prevent it from closing prematurely. Closes #13046. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,6 +89,7 @@ void wxHtmlHelpFrame::Init(wxHtmlHelpData* data)
|
||||
m_Data = data;
|
||||
m_HtmlHelpWin = NULL;
|
||||
m_helpController = NULL;
|
||||
m_shouldPreventAppExit = false;
|
||||
}
|
||||
|
||||
void wxHtmlHelpFrame::SetController(wxHtmlHelpController* controller)
|
||||
@@ -246,6 +247,11 @@ void wxHtmlHelpFrame::UseConfig(wxConfigBase *config, const wxString& rootPath)
|
||||
}
|
||||
#endif // wxUSE_CONFIG
|
||||
|
||||
void wxHtmlHelpFrame::SetShouldPreventAppExit(bool enable)
|
||||
{
|
||||
m_shouldPreventAppExit = enable;
|
||||
}
|
||||
|
||||
#ifdef __WXMAC__
|
||||
void wxHtmlHelpFrame::OnClose(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
|
Reference in New Issue
Block a user