]>
git.saurik.com Git - wxWidgets.git/blob - user/wxLayout/wxlwindow.h
1 /*-*- c++ -*-********************************************************
2 * wxLwindow.h : a scrolled Window for displaying/entering rich text*
4 * (C) 1998 by Karsten Ballüder (Ballueder@usa.net) *
7 *******************************************************************/
12 # pragma interface "wxlwindow.h"
21 class wxLayoutWindow
: public wxScrolledWindow
24 wxLayoutWindow(wxWindow
*parent
);
26 wxLayoutList
& GetLayoutList(void) { return m_llist
; }
28 // clears the window and sets default parameters:
29 void Clear(int family
= wxROMAN
, int size
=12, int style
=wxNORMAL
, int weight
=wxNORMAL
,
30 int underline
=0, char const *fg
="black", char const
33 GetLayoutList().Clear(family
,size
,style
,weight
,underline
,fg
,bg
);
34 SetBackgroundColour( *GetLayoutList().GetDefaults()->GetBGColour());
38 // NB: these functions are used as event handlers and must not be virtual
39 //void OnDraw(wxDC &dc);
40 void OnPaint(wxPaintEvent
&WXUNUSED(event
));
41 void OnMouse(wxMouseEvent
& event
);
42 void OnChar(wxKeyEvent
& event
);
45 virtual long MSWGetDlgCode();
48 void UpdateScrollbars(void);
50 void Erase(void) { m_llist
.Clear(); Clear(); }
51 void SetEventId(int id
) { m_EventId
= id
; }
52 wxPoint
const &GetClickPosition(void) const { return m_ClickPosition
; }
53 virtual ~wxLayoutWindow() {}
56 /// for sending events
59 /// the layout list to be displayed
61 /// have we already set the scrollbars?
63 /// if we want to find an object:
65 wxLayoutObjectBase
*m_FoundObject
;
66 wxPoint m_ClickPosition
;