]>
Commit | Line | Data |
---|---|---|
fa5af9af VZ |
1 | wxUniversal README |
2 | ================== | |
2bcdcf7e | 3 | |
ea5ef76f | 4 | Welcome to wxUniversal! |
2bcdcf7e | 5 | |
ea5ef76f | 6 | Acknowledgements: wxUniversal wouldn't have been written without the |
fa5af9af | 7 | generous support of SciTech Software. Many thanks to Kendall Bennett and |
2bcdcf7e VZ |
8 | Tom Ryan! |
9 | ||
10 | 0. Introduction | |
11 | --------------- | |
12 | ||
ea5ef76f | 13 | wxUniversal is a port of wxWindows which implements the various GUI controls |
2bcdcf7e VZ |
14 | by drawing them itself (using low level wxWindows classes). Please see |
15 | ||
fa5af9af | 16 | http://www.wxwindows.org/wxuniv.htm |
2bcdcf7e VZ |
17 | |
18 | for more details about it. | |
19 | ||
ea5ef76f | 20 | The advantage of wxUniversal is that you have precise control over the |
b59da6c2 | 21 | controls' appearance (it is not always possible to change all aspects of the |
2bcdcf7e | 22 | native controls) and the theme support: the same program may be changed to |
b59da6c2 | 23 | look completely differently without changing a single line of its code but |
2bcdcf7e VZ |
24 | just changing the theme. |
25 | ||
ea5ef76f | 26 | Another advantage is that it makes writing ports of wxWindows for other |
2bcdcf7e | 27 | platforms (such as OS/2, BeOS or QNX) much simpler, so it is of special |
b59da6c2 | 28 | interest to people interested in porting wxWindows to another platform. |
2bcdcf7e | 29 | |
ea5ef76f | 30 | However, wxUniversal doesn't have a 100% native look and feel unlike the |
2bcdcf7e VZ |
31 | other wxWindows ports - this is the price to pay for the extra flexibility. |
32 | ||
b59da6c2 JS |
33 | 1. Requirements and supported platforms |
34 | --------------------------------------- | |
2bcdcf7e | 35 | |
ea5ef76f | 36 | wxUniversal is used together with another wxWindows port which provides the |
fa5af9af VZ |
37 | "low level classes" mentioned above. Currently it can be built with wxMSW, |
38 | wxGTK or wxX11. In any case, you should download the sources for the | |
2bcdcf7e VZ |
39 | appropriate toolkit in addition to wxUniversal - in fact, you should download |
40 | them first and then unpack wxUniversal in the same directory. | |
41 | ||
ea5ef76f | 42 | The requirements for wxUniversal are the same as for the underlying low level |
2bcdcf7e VZ |
43 | toolkit. |
44 | ||
45 | 2. Installing under Win32 | |
46 | ------------------------- | |
47 | ||
ea5ef76f JS |
48 | If compiling from CVS, please copy include/wx/univ/setup0.h |
49 | to include/wx/univ/setup.h before following these steps. | |
50 | ||
c040ce40 | 51 | a) Using Visual C++ 6.0/7.x |
2bcdcf7e | 52 | |
c040ce40 VZ |
53 | Follow wxMSW instructions but make sure to choose one of the "Universal" |
54 | configurations before building. | |
2bcdcf7e VZ |
55 | |
56 | b) Cygwin | |
57 | ||
58 | Please refer to the Unix section below | |
59 | ||
c040ce40 VZ |
60 | ** the instructions may be out of date as for wxWindows 2.5.1+ ** |
61 | ||
2bcdcf7e | 62 | c) Other compilers |
2b5f62a0 VZ |
63 | Borland: |
64 | in the wxwindows\src\msw directory run | |
65 | 'make -f makefile.b32 WXUSINGUNIV=1' to build the library and then run | |
66 | 'make -f makefile.b32 WXUSINGUNIV=1' in the sample directory which you wish | |
67 | to build using the wxUniversal widgets. Use 'SET WXTHEME=GTK' [or WIN32 or METAL] | |
68 | to test the existing themes | |
2bcdcf7e | 69 | |
ea5ef76f | 70 | Unfortunately we don't have makefiles for any other compilers yet. |
2bcdcf7e VZ |
71 | Please contact us if you would like to help us with creating one for the |
72 | compiler you use. | |
73 | ||
b59da6c2 JS |
74 | Note that you can use the wxUniversal classes, wxMSW and MicroWindows (from |
75 | Century Software) to build a different variant of wxUniversal than that | |
76 | documented here. Please see docs/univ/readme.txt for further information. | |
8a82c9ec JS |
77 | Note that this port is not up-to-date and probably needs work |
78 | to compile. | |
79 | ||
80 | Note that by default, wxUniv under MSW uses PostScript printing, | |
81 | not Windows printing. To change to Windows printing, set | |
82 | wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW to 0 in include/wx/univ/setup.h | |
83 | before compiling. | |
b59da6c2 | 84 | |
2bcdcf7e VZ |
85 | 3. Installing under Unix |
86 | ------------------------ | |
87 | ||
fa5af9af VZ |
88 | Please refer to the installation instructions for wxGTK or wxX11. The only |
89 | change for wxUniversal is that you must add "--enable-universal" switch to | |
90 | the configure command line and for wxX11 even this is unnecessary, i.e. it | |
91 | is enabled by default. | |
2bcdcf7e | 92 | |
ea5ef76f JS |
93 | If compiling from CVS, please copy include/wx/univ/setup0.h |
94 | to include/wx/univ/setup.h before configuring. | |
95 | ||
717e51d8 VZ |
96 | 4. Running wxUniv programs |
97 | -------------------------- | |
98 | ||
99 | wxUniv programs all honour the standard option "--theme" which allows to | |
100 | specify the theme to be used by name. Currently there are the following | |
101 | themes: | |
102 | ||
103 | a) win32 -- Windows 95 look and feel | |
104 | b) metal -- based on win32 but with gradient backgrounds | |
105 | c) gtk -- GTK+ 1.x standard look and feel | |
106 | ||
107 | Thus, to launch a program using gtk theme you may do "./program --theme=gtk". | |
108 | ||
109 | It is also possible to change the default theme for all wxUniv applications | |
110 | at once by setting the environment variable WXTHEME to the theme name. | |
111 | ||
112 | 5. Documentation and support | |
2bcdcf7e VZ |
113 | ---------------------------- |
114 | ||
ea5ef76f | 115 | Please note that wxUniversal is not as mature as the other wxWindows ports |
2bcdcf7e VZ |
116 | and is currently officially in alpha stage. In particular, it is not really |
117 | intended for the end users but rather for developers at the current stage and | |
118 | this is why we don't provide any binaries for it. | |
119 | ||
ea5ef76f | 120 | There is no separate documentation for wxUniversal, please refer to wxWindows |
2bcdcf7e VZ |
121 | documentation instead. |
122 | ||
ea5ef76f | 123 | Support for wxUniversal is available from the same places as for wxWindows |
2bcdcf7e VZ |
124 | itself, namely: |
125 | ||
126 | * Usenet newsgroup comp.soft-sys.wxwindows | |
127 | ||
128 | * Mailing lists: see http://lists.wxwindows.org/ for more information | |
129 | ||
130 | * WWW page: http://www.wxwindows.org/ | |
131 | ||
132 | ||
b59da6c2 | 133 | Hope you find wxUniversal useful! |
2bcdcf7e | 134 | |
fa5af9af | 135 | Vadim Zeitlin |
2bcdcf7e VZ |
136 | |
137 | ||
2b5f62a0 | 138 | This file is accurate for the version 2.3.4 of wxUniversal. It was last |
717e51d8 | 139 | modified on Apr 15, 2002. |
2bcdcf7e | 140 |