]>
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"
19 #ifdef BROKEN_COMPILER
23 class wxLayoutWindow
: public wxScrolledWindow
26 wxLayoutWindow(wxWindow
*parent
);
28 wxLayoutList
& GetLayoutList(void) { return m_llist
; }
30 // clears the window and sets default parameters:
31 void Clear(int family
= wxROMAN
, int size
=12, int style
=wxNORMAL
, int weight
=wxNORMAL
,
32 int underline
=0, char const *fg
="black", char const
35 GetLayoutList().Clear(family
,size
,style
,weight
,underline
,fg
,bg
);
36 SetBackgroundColour( *GetLayoutList().GetDefaults()->GetBGColour());
39 //virtual void OnDraw(wxDC &dc);
40 void OnPaint(wxPaintEvent
&WXUNUSED(event
));
41 virtual void OnMouse(wxMouseEvent
& event
);
42 virtual void OnChar(wxKeyEvent
& event
);
43 void UpdateScrollbars(void);
46 { m_llist
.Clear(); Clear(); }
47 void SetEventId(int id
) { m_EventId
= id
; }
48 wxPoint
const &GetClickPosition(void) const { return
50 virtual ~wxLayoutWindow() {} ;
52 /// for sending events
55 /// the layout list to be displayed
57 /// have we already set the scrollbars?
59 /// if we want to find an object:
61 wxLayoutObjectBase
*m_FoundObject
;
62 wxPoint m_ClickPosition
;
66 #ifdef BROKEN_COMPILER