]> git.saurik.com Git - wxWidgets.git/blame - docs/microwin/readme.txt
added test for writing empty value to the config
[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 29- unarchive MicroWindows 0.89pre7
46d0e4b2
JS
30
31- change 'config' to use X11 and any other options you feel fit.
32 Suggestions for changes to the defaults:
33
34 ERASEMOVE=N (otherwise moving windows will look messy)
35 X11=Y
36 OPTIMIZE=N
37 DEBUG=Y
38 VERBOSE=Y
39
40- apply microwindows.patches (from wxWindows:
bd52bee1 41 docs/microwin/microwindows.patches) to fix PeekMessage
46d0e4b2
JS
42 and other issues
43
bd52bee1
JS
44- compile by typing 'make' from within the MicroWindows src directory
45
46wxMicroWindows:
47
48- untar the wxMicroWindows port/download from CVS
46d0e4b2
JS
49
50- change the TOP variable at the top of src/msw/makefile.mic
bd52bee1 51 to reflect where MicroWindows is installed
46d0e4b2 52
bd52bee1
JS
53- type 'make all' from src/msw. To clean, use cleanwx and NOT clean
54 since that will clean MicroWindows itself
46d0e4b2 55
bd52bee1
JS
56- to make the sample, cd into samples/minimal, edit the TOP variable,
57 and type 'make all'
0fd734af 58
0fd734af
JS
59Running 'minimal' runs the virtual MicroWindows desktop
60and the minimal sample, since in a MicroWindows WIN32 application
61they are one and the same binary.
62
63Status
64======
65
46d0e4b2
JS
66The minimal sample is almost fully-functional, apart from minor
67menu presentation issues (no borders, for example).
bd52bee1
JS
68
69Implementation Notes
70====================
0fd734af 71
bd52bee1
JS
72wxMicroWindows is essentially the wxMSW port + wxUniversal
73widgets. Lots of things in include/wx/univ/setup.h are switched
74off to allow the port to compile. There are also #ifdefs
75switching off further functionality, such as most wxBitmap
76functions, pending proper implementation.
0fd734af 77
bd52bee1
JS
78There are some WIN32 API functions not implemented by MicroWindows
79that are instead stubbed out in include/wx/msw/microwin.c,
80and 'implemented' in src/msw/microwin.c. Some of these functions
81are important, some less so. They will need to be implemented
82in due course. But implementing missing functionality in this way
83is preferably to proliferating many #ifdefs in the
84wxMSW/wxMicroWindows port itself.
85
86Things missing from MicroWindows that need to be worked around
87==============================================================
88
89No ::GetKeyState (see include/wx/msw/private.h). Should probably use
90GdOpenKeyboard/GdCloseKeyboard/GdReadKeyboard. Could perhaps emulate
91GetKeyState this way.
0fd734af
JS
92
93No ::CreateBitmap or BITMAPINFO. But BMPs can be converted
94to C using convbmp, then need to use Gr... functions.
bd52bee1
JS
95We MUST implement creation from XPMs, since wxUniversal
96makes use of XPMs, or else create our own bitmaps for
97drawing radioboxes, checkboxes etc.: see renderers
98in src/univ.
0fd734af
JS
99
100No ::DestroyIcon, ::DestroyCursor - use ::DestroyObject instead?
101Also no LoadCursor, LoadImage. So how do we make cursors? No ::SetCursor.
102
103wxDC: no ::GetTextColor, ::GetBkColor, ::IntersectClipRect,
104::GetClipBox
105
bd52bee1
JS
106No ::SetMenu, so no menus or menubars (now implemented by
107wxUniversal).
0fd734af
JS
108
109No ::GetObject so we can't get LOGFONT from an HFONT
bd52bee1
JS
110in wxSystemSettings (worked around by passing HFONT to
111the wxFont constructor).
0fd734af 112