m_currentRectVisible = FALSE;
m_editable = TRUE;
- m_editInPlace = TRUE;
+ m_editInPlace = FALSE;
m_inOnTextInPlace = FALSE;
#if defined(__WIN95__)
m_textItem = (wxTextCtrl *) NULL;
m_currentRectVisible = FALSE;
m_editable = TRUE;
+ m_editInPlace = FALSE;
+ m_inOnTextInPlace = FALSE;
#if defined(__WIN95__)
m_scrollWidth = wxSystemSettings::GetSystemMetric(wxSYS_VSCROLL_X);
#elif defined(__WXGTK__)
wxPoint( m_currentRect.x-2, m_currentRect.y-2 ),
wxSize( m_currentRect.width+4, m_currentRect.height+4 ),
wxNO_BORDER | wxTE_PROCESS_ENTER );
- m_inPlaceTextItem->Show(TRUE);
- m_inPlaceTextItem->SetFocus();
+ m_inPlaceTextItem->Show(m_editInPlace);
+ if ( m_editInPlace )
+ m_inPlaceTextItem->SetFocus();
return TRUE;
}
# pragma hdrstop
#endif
+#if wxUSE_HTML
+
#ifndef WX_PRECOMP
-# include "wx/setup.h"
# include "wx/string.h"
# include "wx/utils.h"
# include "wx/list.h"
#endif
IMPLEMENT_CLASS(wxHelpControllerHtml, wxHTMLHelpControllerBase)
-
+
/**
This class implements help via an external browser.
It requires the name of a directory containing the documentation
*/
#define FRAME_WIDTH 400
-#define FRAME_HEIGHT 400
+#define FRAME_HEIGHT 400
#define LAYOUT_X_MARGIN 2
#define LAYOUT_Y_MARGIN 2
#define OFFSET 10
-
+
class wxHelpFrame : public wxFrame
{
public:
{
m_controller = controller;
- m_htmlwin = new wxHtmlWindow(this,-1,wxDefaultPosition,wxSize(FRAME_WIDTH,
+ m_htmlwin = new wxHtmlWindow(this,-1,wxDefaultPosition,wxSize(FRAME_WIDTH,
FRAME_HEIGHT));
-
+
wxLayoutConstraints *c;
c = new wxLayoutConstraints;
{
m_Frame = NULL;
m_offset = 0;
-
+
SetFrameParameters(_("Help"),
wxSize(FRAME_WIDTH, FRAME_HEIGHT),
wxDefaultPosition);
if(m_offset > 200)
m_offset = 0;
}
-
+
}
return m_Frame->LoadPage(url);
}
if(pos) *pos = m_FramePosition;
if(newframe) *newframe = m_NewFrameEachTime;
}
+
+#endif // wxUSE_HTML