wxMaxima
Loading...
Searching...
No Matches
listctrlsample.h
1
2// Name: samples/listctrl/listctrlsample.h
3// Purpose: wxListCtrl export demo
4// Author: Blake Madden
5// Created: 2026-06-10
6// Copyright: (c) Blake Madden
7// Licence: wxWindows licence
9
10#ifndef _LISTCTRL_SAMPLE_H_
11#define _LISTCTRL_SAMPLE_H_
12
13#include <wx/wx.h>
14#include <wx/listctrl.h>
15
16class MyFrame : public wxFrame
17{
18public:
19 MyFrame(const wxString& title);
20
21private:
22 void OnExportDirect(wxCommandEvent& event);
23 void OnExportDC(wxCommandEvent& event);
24 void OnExportFullWidth(wxCommandEvent& event);
25 void OnExportSimple(wxCommandEvent& event);
26 void OnExportFinancial(wxCommandEvent& event);
27 void OnExportTwoLists(wxCommandEvent& event);
28 void OnExportRange(wxCommandEvent& event);
29 void OnExportHeadersFooters(wxCommandEvent& event);
30 void OnExit(wxCommandEvent& event);
31
32 wxListCtrl* m_list;
33 wxImageList* m_imageList;
34
35 void PopulateList();
36
37 wxDECLARE_EVENT_TABLE();
38};
39
40class MyApp : public wxApp
41{
42public:
43 virtual bool OnInit();
44};
45
46enum
47{
48 ID_EXPORT_DIRECT = wxID_HIGHEST + 1,
49 ID_EXPORT_DC,
50 ID_EXPORT_FULL_WIDTH,
51 ID_EXPORT_SIMPLE,
52 ID_EXPORT_FINANCIAL,
53 ID_EXPORT_TWO_LISTS,
54 ID_EXPORT_RANGE,
55 ID_EXPORT_HEADERS_FOOTERS
56};
57
58#endif
Definition: test_ImgCell.cpp:354
bool OnInit() override
Definition: test_ImgCell.cpp:367
Definition: gridctrlsample.h:17