]>
git.saurik.com Git - wxWidgets.git/blob - user/wxLayout/wxlwindow.h
61304396e329235a39bde988ea2aa16a16436ae3
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"
19 #define BROKEN_COMPILER
21 #ifdef BROKEN_COMPILER
25 class wxLayoutWindow
: public wxScrolledWindow
28 wxLayoutWindow(wxWindow
*parent
);
30 wxLayoutList
& GetLayoutList(void) { return m_llist
; }
32 // clears the window and sets default parameters:
33 void Clear(int family
= wxROMAN
, int size
=12, int style
=wxNORMAL
, int weight
=wxNORMAL
,
34 int underline
=0, char const *fg
="black", char const
37 GetLayoutList().Clear(family
,size
,style
,weight
,underline
,fg
,bg
);
38 SetBackgroundColour( *GetLayoutList().GetDefaults()->GetBGColour());
41 //virtual void OnDraw(wxDC &dc);
42 void OnPaint(wxPaintEvent
&WXUNUSED(event
));
43 virtual void OnMouse(wxMouseEvent
& event
);
44 virtual void OnChar(wxKeyEvent
& event
);
45 void UpdateScrollbars(void);
48 { m_llist
.Clear(); Clear(); }
49 void SetEventId(int id
) { m_EventId
= id
; }
50 wxPoint
const &GetClickPosition(void) const { return
52 virtual ~wxLayoutWindow() {} ;
54 /// for sending events
57 /// the layout list to be displayed
59 /// have we already set the scrollbars?
61 /// if we want to find an object:
63 wxLayoutObjectBase
*m_FoundObject
;
64 wxPoint m_ClickPosition
;
68 #ifdef BROKEN_COMPILER