22 lines
794 B
Diff
22 lines
794 B
Diff
--- src/widgets/ErrorDialog.cpp-dist 2008-11-19 16:28:18.000000000 +0100
|
|
+++ src/widgets/ErrorDialog.cpp 2008-11-20 11:44:25.000000000 +0100
|
|
@@ -124,9 +124,17 @@
|
|
EndModal(true);
|
|
}
|
|
|
|
+// make help dialog modal
|
|
+class HtmlTextHelpDialog : public BrowserFrame
|
|
+{
|
|
+public:
|
|
+ HtmlTextHelpDialog() : BrowserFrame() { MakeModal(true); }
|
|
+ ~HtmlTextHelpDialog() { MakeModal(false); }
|
|
+};
|
|
+
|
|
void ShowHtmlText( wxWindow * pParent, const wxString &Title, const wxString &HtmlText, bool bIsFile = false )
|
|
{
|
|
- BrowserFrame * pWnd = new BrowserFrame();
|
|
+ HtmlTextHelpDialog * pWnd = new HtmlTextHelpDialog();
|
|
pWnd->Create(pParent, -1, Title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE);// & ~wxSYSTEM_MENU);
|
|
ShuttleGui S( pWnd, eIsCreating );
|
|
LinkingHtmlWindow *html;
|