Mercurial > mxe-octave
annotate src/wxwidgets-test.cpp @ 3929:6cb1bf4d1ab4
osmesa: update path to package
* src/osmesa.mk: update package urk
author | John Donoghue |
---|---|
date | Tue, 05 May 2015 15:08:30 -0400 |
parents | 99516e73b368 |
children |
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) |