annotate src/wxwidgets-test.cpp @ 7207:9ed6500e56d3 default tip @

maint: Merge release to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 17 May 2024 20:16:41 +0200
parents 99516e73b368
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2351
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
1 /*
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
2 * This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2351
diff changeset
3 * See index.html for further information.
2351
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
4 */
1477
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 #include <wx/wx.h>
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 class TestApp: public wxApp
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 {
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 private:
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 bool OnInit()
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 {
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 wxFrame *frame = new wxFrame(0, -1, _("Hello, World!"));
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 frame->Show(true);
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 SetTopWindow(frame);
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 return true;
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 }
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 };
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 IMPLEMENT_APP(TestApp)