]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: src/palmos/listctrl.cpp | |
3 | // Purpose: wxListCtrl | |
4 | // Author: William Osborne - minimal working wxPalmOS port | |
5 | // Modified by: | |
6 | // Created: 10/13/04 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) William Osborne | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // ============================================================================ | |
13 | // declarations | |
14 | // ============================================================================ | |
15 | ||
16 | // ---------------------------------------------------------------------------- | |
17 | // headers | |
18 | // ---------------------------------------------------------------------------- | |
19 | ||
20 | // For compilers that support precompilation, includes "wx.h". | |
21 | #include "wx/wxprec.h" | |
22 | ||
23 | #ifdef __BORLANDC__ | |
24 | #pragma hdrstop | |
25 | #endif | |
26 | ||
27 | #if wxUSE_LISTCTRL | |
28 | ||
29 | #ifndef WX_PRECOMP | |
30 | #include "wx/app.h" | |
31 | #include "wx/intl.h" | |
32 | #include "wx/log.h" | |
33 | #include "wx/settings.h" | |
34 | #include "wx/dcclient.h" | |
35 | #include "wx/textctrl.h" | |
36 | #endif | |
37 | ||
38 | #include "wx/imaglist.h" | |
39 | #include "wx/listctrl.h" | |
40 | ||
41 | #if wxUSE_EXTENDED_RTTI | |
42 | WX_DEFINE_FLAGS( wxListCtrlStyle ) | |
43 | ||
44 | wxBEGIN_FLAGS( wxListCtrlStyle ) | |
45 | // new style border flags, we put them first to | |
46 | // use them for streaming out | |
47 | wxFLAGS_MEMBER(wxBORDER_SIMPLE) | |
48 | wxFLAGS_MEMBER(wxBORDER_SUNKEN) | |
49 | wxFLAGS_MEMBER(wxBORDER_DOUBLE) | |
50 | wxFLAGS_MEMBER(wxBORDER_RAISED) | |
51 | wxFLAGS_MEMBER(wxBORDER_STATIC) | |
52 | wxFLAGS_MEMBER(wxBORDER_NONE) | |
53 | ||
54 | // old style border flags | |
55 | wxFLAGS_MEMBER(wxSIMPLE_BORDER) | |
56 | wxFLAGS_MEMBER(wxSUNKEN_BORDER) | |
57 | wxFLAGS_MEMBER(wxDOUBLE_BORDER) | |
58 | wxFLAGS_MEMBER(wxRAISED_BORDER) | |
59 | wxFLAGS_MEMBER(wxSTATIC_BORDER) | |
60 | wxFLAGS_MEMBER(wxBORDER) | |
61 | ||
62 | // standard window styles | |
63 | wxFLAGS_MEMBER(wxTAB_TRAVERSAL) | |
64 | wxFLAGS_MEMBER(wxCLIP_CHILDREN) | |
65 | wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW) | |
66 | wxFLAGS_MEMBER(wxWANTS_CHARS) | |
67 | wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE) | |
68 | wxFLAGS_MEMBER(wxALWAYS_SHOW_SB ) | |
69 | wxFLAGS_MEMBER(wxVSCROLL) | |
70 | wxFLAGS_MEMBER(wxHSCROLL) | |
71 | ||
72 | wxFLAGS_MEMBER(wxLC_LIST) | |
73 | wxFLAGS_MEMBER(wxLC_REPORT) | |
74 | wxFLAGS_MEMBER(wxLC_ICON) | |
75 | wxFLAGS_MEMBER(wxLC_SMALL_ICON) | |
76 | wxFLAGS_MEMBER(wxLC_ALIGN_TOP) | |
77 | wxFLAGS_MEMBER(wxLC_ALIGN_LEFT) | |
78 | wxFLAGS_MEMBER(wxLC_AUTOARRANGE) | |
79 | wxFLAGS_MEMBER(wxLC_USER_TEXT) | |
80 | wxFLAGS_MEMBER(wxLC_EDIT_LABELS) | |
81 | wxFLAGS_MEMBER(wxLC_NO_HEADER) | |
82 | wxFLAGS_MEMBER(wxLC_SINGLE_SEL) | |
83 | wxFLAGS_MEMBER(wxLC_SORT_ASCENDING) | |
84 | wxFLAGS_MEMBER(wxLC_SORT_DESCENDING) | |
85 | wxFLAGS_MEMBER(wxLC_VIRTUAL) | |
86 | ||
87 | wxEND_FLAGS( wxListCtrlStyle ) | |
88 | ||
89 | IMPLEMENT_DYNAMIC_CLASS_XTI(wxListCtrl, wxControl,"wx/listctrl.h") | |
90 | ||
91 | wxBEGIN_PROPERTIES_TABLE(wxListCtrl) | |
92 | wxEVENT_PROPERTY( TextUpdated , wxEVT_COMMAND_TEXT_UPDATED , wxCommandEvent ) | |
93 | ||
94 | wxPROPERTY_FLAGS( WindowStyle , wxListCtrlStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style | |
95 | wxEND_PROPERTIES_TABLE() | |
96 | ||
97 | wxBEGIN_HANDLERS_TABLE(wxListCtrl) | |
98 | wxEND_HANDLERS_TABLE() | |
99 | ||
100 | wxCONSTRUCTOR_5( wxListCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle ) | |
101 | ||
102 | /* | |
103 | Content-type: text/html ]>