1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2000-01-23 18:23:46 -05:00
|
|
|
// Name: wx/generic/scrolwin.h
|
2001-06-26 16:59:19 -04:00
|
|
|
// Purpose: wxGenericScrolledWindow class
|
1998-05-20 10:01:55 -04:00
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart and Markus Holzem
|
2000-01-23 18:23:46 -05:00
|
|
|
// Licence: wxWindows license
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2000-01-23 18:23:46 -05:00
|
|
|
#ifndef _WX_GENERIC_SCROLLWIN_H_
|
|
|
|
#define _WX_GENERIC_SCROLLWIN_H_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
2001-07-03 15:38:19 -04:00
|
|
|
#pragma interface "genscrolwin.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
2000-01-23 18:23:46 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// headers and constants
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#include "wx/window.h"
|
1999-05-26 05:03:25 -04:00
|
|
|
#include "wx/panel.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1999-04-14 07:55:35 -04:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxPanelNameStr;
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2000-01-23 18:23:46 -05:00
|
|
|
// default scrolled window style
|
2001-04-30 08:35:54 -04:00
|
|
|
#ifndef wxScrolledWindowStyle
|
2000-03-15 15:51:43 -05:00
|
|
|
#define wxScrolledWindowStyle (wxHSCROLL | wxVSCROLL)
|
2001-04-30 08:35:54 -04:00
|
|
|
#endif
|
2000-01-23 18:23:46 -05:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
// avoid triggering this stupid VC++ warning
|
|
|
|
#ifdef __VISUALC__
|
|
|
|
#pragma warning(disable:4355) // 'this' used in base member initializer list
|
|
|
|
#endif
|
|
|
|
|
2000-01-23 18:23:46 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
2001-04-30 08:35:54 -04:00
|
|
|
// wxGenericScrolledWindow
|
2000-01-23 18:23:46 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
class WXDLLEXPORT wxGenericScrolledWindow : public wxPanel,
|
|
|
|
public wxScrollHelper
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
2001-07-09 09:14:28 -04:00
|
|
|
public:
|
2001-06-26 16:59:19 -04:00
|
|
|
wxGenericScrolledWindow() : wxScrollHelper(this) { }
|
2001-04-30 08:35:54 -04:00
|
|
|
wxGenericScrolledWindow(wxWindow *parent,
|
2000-01-23 18:23:46 -05:00
|
|
|
wxWindowID id = -1,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxScrolledWindowStyle,
|
|
|
|
const wxString& name = wxPanelNameStr)
|
2001-06-26 16:59:19 -04:00
|
|
|
: wxScrollHelper(this)
|
1999-10-15 10:59:44 -04:00
|
|
|
{
|
2000-01-23 18:23:46 -05:00
|
|
|
Create(parent, id, pos, size, style, name);
|
1999-10-15 10:59:44 -04:00
|
|
|
}
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
virtual ~wxGenericScrolledWindow();
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2000-01-23 18:23:46 -05:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxScrolledWindowStyle,
|
|
|
|
const wxString& name = wxPanelNameStr);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
virtual void PrepareDC(wxDC& dc) { DoPrepareDC(dc); }
|
1999-10-15 10:59:44 -04:00
|
|
|
|
|
|
|
private:
|
2001-04-30 08:35:54 -04:00
|
|
|
DECLARE_ABSTRACT_CLASS(wxGenericScrolledWindow)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#ifdef __VISUALC__
|
|
|
|
#pragma warning(default:4355)
|
|
|
|
#endif
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
2000-01-23 18:23:46 -05:00
|
|
|
// _WX_GENERIC_SCROLLWIN_H_
|