#include "wx/html/forcelnk.h"
-
//-----------------------------------------------------------------------------
// wxHtmlWindow
//-----------------------------------------------------------------------------
wxHtmlWindow::wxHtmlWindow(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
- long style, const wxString& name) : wxScrolledWindow(parent, id, pos, size, wxVSCROLL, name)
+ long style, const wxString& name) : wxScrolledWindow(parent, id, pos, size, wxVSCROLL | wxHSCROLL, name)
{
m_tmpMouseMoved = FALSE;
m_tmpLastLink = NULL;
if (f == NULL) {
wxString err;
- err.Printf(_("The browser is unable to open requested location :\n\n%s"), WXSTRINGCAST location);
+ err.Printf(_("Unable to open requested location :\n\n%s"), WXSTRINGCAST location);
m_tmpCanDrawLocks--;
Refresh();
wxMessageBox(err, "Error");
#endif
GetClientSize(&ClientWidth, &ClientHeight);
m_Cell -> Layout(ClientWidth);
- if (ClientHeight < m_Cell -> GetHeight()) {
- SetScrollbars(wxHTML_SCROLL_STEP, wxHTML_SCROLL_STEP,
- m_Cell -> GetWidth() / wxHTML_SCROLL_STEP,
- m_Cell -> GetHeight() / wxHTML_SCROLL_STEP
- /*cheat: top-level frag is always container*/);
+ if (ClientHeight < m_Cell -> GetHeight() + GetCharHeight()) {
+ SetScrollbars(
+ wxHTML_SCROLL_STEP, wxHTML_SCROLL_STEP,
+ m_Cell -> GetWidth() / wxHTML_SCROLL_STEP,
+ (m_Cell -> GetHeight() + GetCharHeight()) / wxHTML_SCROLL_STEP
+ /*cheat: top-level frag is always container*/);
}
else { /* we fit into window, no need for scrollbars */
SetScrollbars(wxHTML_SCROLL_STEP, 1, m_Cell -> GetWidth() / wxHTML_SCROLL_STEP, 0); // disable...
if (m_tmpCanDrawLocks > 0) return;
dc.SetMapMode(wxMM_TEXT);
+#if 0
+/* VS - I don't think this is neccessary any longer
+ MSC_VER 1200 means MSVC 6.0 and it works fine */
#if defined(_MSC_VER) && (_MSC_VER == 1200)
::SetMapMode((HDC)dc.GetHDC(), MM_TEXT);
+#endif
#endif
dc.SetBackgroundMode(wxTRANSPARENT);
ViewStart(&x, &y);
switch (event.KeyCode()) {
case WXK_PAGEUP :
- case WXK_PRIOR :
- Scroll(-1, sty - cliy);
+ case WXK_PRIOR :
+ Scroll(-1, sty - (2 * cliy / 3));
break;
case WXK_PAGEDOWN :
- case WXK_NEXT :
- Scroll(-1, sty + cliy);
+ case WXK_NEXT :
+ Scroll(-1, sty + (2 * cliy / 3));
break;
case WXK_HOME :
Scroll(-1, 0);
FORCE_LINK(m_hline)
FORCE_LINK(m_links)
FORCE_LINK(m_tables)
+FORCE_LINK(m_meta)
#endif