]> git.saurik.com Git - wxWidgets.git/blame - docs/microwin/readme.txt
Fixing some demos to look and act better
[wxWidgets.git] / docs / microwin / readme.txt
CommitLineData
0fd734af
JS
1wxMicroWindows port
2===================
3
4Julian Smart 2001-07-02
5
bd52bee1
JS
6This is a port of wxWindows to MicroWindows, under Linux.
7Widgets are supplied by the wxUniversal project, while the
8underlying port uses the Windows ports with small modifications
9for the MicroWindows API.
0fd734af
JS
10
11There are many things missing from MicroWindows that will
12make the port quite limited for the time being. I haven't
13worked out how to create bitmaps, though there is a BMP to C
bd52bee1
JS
14converter. There are no common dialogs (we will use generic ones),
15and only one WIN32 app may be run at a time.
0fd734af 16
bd52bee1
JS
17Note that you can gain confidence in the WIN32/wxUniversal
18combination by compiling wxUniversal under Windows using VC++,
19using src/wxvc_universal.dsp. You can compile the minimal
20and widgets samples in wxUniversal mode using the
21UnivDebug and UnivRelease targets. Most of the code is shared
22between this combination, and the wxMicroWindows port.
0fd734af
JS
23
24Installation
25============
26
bd52bee1 27MicroWindows:
0fd734af 28
bd52bee1
JS
29- unarchive MicroWindows 0.89pre7
30- change 'config' to use X11 and any other options you feel fit,
31 such as verbose compilation
32- cd to src/mwin and apply microwindows.patches (from wxWindows:
33 docs/microwin/microwindows.patches) to fix PeekMessage
34- compile by typing 'make' from within the MicroWindows src directory
35
36wxMicroWindows:
37
38- untar the wxMicroWindows port/download from CVS
39- and change the TOP variable at the top of src/msw/makefile.mic
40 to reflect where MicroWindows is installed
41- type 'make all' from src/msw. To clean, use cleanwx and NOT clean
42 since that will clean MicroWindows itself
43- to make the sample, cd into samples/minimal, edit the TOP variable,
44 and type 'make all'
0fd734af 45
0fd734af
JS
46Running 'minimal' runs the virtual MicroWindows desktop
47and the minimal sample, since in a MicroWindows WIN32 application
48they are one and the same binary.
49
50Status
51======
52
bd52bee1
JS
53A frame comes up :-) The menus don't work properly just yet.
54
55Implementation Notes
56====================
0fd734af 57
bd52bee1
JS
58wxMicroWindows is essentially the wxMSW port + wxUniversal
59widgets. Lots of things in include/wx/univ/setup.h are switched
60off to allow the port to compile. There are also #ifdefs
61switching off further functionality, such as most wxBitmap
62functions, pending proper implementation.
0fd734af 63
bd52bee1
JS
64There are some WIN32 API functions not implemented by MicroWindows
65that are instead stubbed out in include/wx/msw/microwin.c,
66and 'implemented' in src/msw/microwin.c. Some of these functions
67are important, some less so. They will need to be implemented
68in due course. But implementing missing functionality in this way
69is preferably to proliferating many #ifdefs in the
70wxMSW/wxMicroWindows port itself.
71
72Things missing from MicroWindows that need to be worked around
73==============================================================
74
75No ::GetKeyState (see include/wx/msw/private.h). Should probably use
76GdOpenKeyboard/GdCloseKeyboard/GdReadKeyboard. Could perhaps emulate
77GetKeyState this way.
0fd734af
JS
78
79No ::CreateBitmap or BITMAPINFO. But BMPs can be converted
80to C using convbmp, then need to use Gr... functions.
bd52bee1
JS
81We MUST implement creation from XPMs, since wxUniversal
82makes use of XPMs, or else create our own bitmaps for
83drawing radioboxes, checkboxes etc.: see renderers
84in src/univ.
0fd734af
JS
85
86No ::DestroyIcon, ::DestroyCursor - use ::DestroyObject instead?
87Also no LoadCursor, LoadImage. So how do we make cursors? No ::SetCursor.
88
89wxDC: no ::GetTextColor, ::GetBkColor, ::IntersectClipRect,
90::GetClipBox
91
bd52bee1
JS
92No ::SetMenu, so no menus or menubars (now implemented by
93wxUniversal).
0fd734af
JS
94
95No ::GetObject so we can't get LOGFONT from an HFONT
bd52bee1
JS
96in wxSystemSettings (worked around by passing HFONT to
97the wxFont constructor).
0fd734af
JS
98
99No ::CreateDialog so how do we create dialogs? Simulate
bd52bee1
JS
100one with a frame...
101