]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: src/msw/listctrl.cpp | |
3 | // Purpose: wxListCtrl | |
4 | // Author: Julian Smart | |
5 | // Modified by: Agron Selimaj | |
6 | // Created: 04/01/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
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/mac/uma.h" | |
39 | ||
40 | #include "wx/imaglist.h" | |
41 | #include "wx/listctrl.h" | |
42 | #include "wx/sysopt.h" | |
43 | ||
44 | #define wxMAC_ALWAYS_USE_GENERIC_LISTCTRL wxT("mac.listctrl.always_use_generic") | |
45 | ||
46 | #if wxUSE_EXTENDED_RTTI | |
47 | WX_DEFINE_FLAGS( wxListCtrlStyle ) | |
48 | ||
49 | wxBEGIN_FLAGS( wxListCtrlStyle ) | |
50 | // new style border flags, we put them first to | |
51 | // use them for streaming out | |
52 | wxFLAGS_MEMBER(wxBORDER_SIMPLE) | |
53 | wxFLAGS_MEMBER(wxBORDER_SUNKEN) | |
54 | wxFLAGS_MEMBER(wxBORDER_DOUBLE) | |
55 | wxFLAGS_MEMBER(wxBORDER_RAISED) | |
56 | wxFLAGS_MEMBER(wxBORDER_STATIC) | |
57 | wxFLAGS_MEMBER(wxBORDER_NONE) | |
58 | ||
59 | // old style border flags | |
60 | wxFLAGS_MEMBER(wxSIMPLE_BORDER) | |
61 | wxFLAGS_MEMBER(wxSUNKEN_BORDER) | |
62 | wxFLAGS_MEMBER(wxDOUBLE_BORDER) | |
63 | wxFLAGS_MEMBER(wxRAISED_BORDER) | |
64 | wxFLAGS_MEMBER(wxSTATIC_BORDER) | |
65 | wxFLAGS_MEMBER(wxBORDER) | |
66 | ||
67 | // standard window styles | |
68 | wxFLAGS_MEMBER(wxTAB_TRAVERSAL) | |
69 | wxFLAGS_MEMBER(wxCLIP_CHILDREN) | |
70 | wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW) | |
71 | wxFLAGS_MEMBER(wxWANTS_CHARS) | |
72 | wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE) | |
73 | wxFLAGS_MEMBER(wxALWAYS_SHOW_SB ) | |
74 | wxFLAGS_MEMBER(wxVSCROLL) | |
75 | wxFLAGS_MEMBER(wxHSCROLL) | |
76 | ||
77 | wxFLAGS_MEMBER(wxLC_LIST) | |
78 | wxFLAGS_MEMBER(wxLC_REPORT) | |
79 | wxFLAGS_MEMBER(wxLC_ICON) | |
80 | wxFLAGS_MEMBER(wxLC_SMALL_ICON) | |
81 | wxFLAGS_MEMBER(wxLC_ALIGN_TOP) | |
82 | wxFLAGS_MEMBER(wxLC_ALIGN_LEFT) | |
83 | wxFLAGS_MEMBER(wxLC_AUTOARRANGE) | |
84 | wxFLAGS_MEMBER(wxLC_USER_TEXT) | |
85 | wxFLAGS_MEMBER(wxLC_EDIT_LABELS) | |
86 | wxFLAGS_MEMBER(wxLC_NO_HEADER) | |
87 | wxFLAGS_MEMBER(wxLC_SINGLE_SEL) | |
88 | wxFLAGS_MEMBER(wxLC_SORT_ASCENDING) | |
89 | wxFLAGS_MEMBER(wxLC_SORT_DESCENDING) | |
90 | wxFLAGS_MEMBER(wxLC_VIRTUAL) | |
91 | ||
92 | wxEND_FLAGS( wxListCtrlStyle ) | |
93 | ||
94 | IMPLEMENT_DYNAMIC_CLASS_XTI(wxListCtrl, wxControl,"wx/listctrl.h") | |
95 | ||
96 | wxBEGIN_PROPERTIES_TABLE(wxListCtrl) | |
97 | wxEVENT_PROPERTY( TextUpdated , wxEVT_COMMAND_TEXT_UPDATED , wxCommandEvent ) | |
98 | ||
99 | wxPROPERTY_FLAGS( WindowStyle , wxListCtrlStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style | |
100 | wxEND_PROPERTIES_TABLE() | |
101 | ||
102 | wxBEGIN_HANDLERS_TABLE(wxListCtrl) | |
103 | wxEND_HANDLERS_TABLE() | |
104 | ||
105 | wxCONSTRUCTOR_5( wxListCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle ) | |
106 | ||
107 | /* | |
108 | Content-type: text/html ]>