]>
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 SetEventId(int id
) { m_EventId
= id
; }
51 // what for? Caller doesn't even know object's positions in window
52 //wxPoint const &GetClickPosition(void) const { return m_ClickPosition; }
53 virtual ~wxLayoutWindow() {}
55 /// for sending events
58 /// the layout list to be displayed
60 /// have we already set the scrollbars?
62 /// if we want to find an object:
64 wxLayoutObjectBase
*m_FoundObject
;
65 wxPoint m_ClickPosition
;