2002-04-11 19:00:03 +00:00
|
|
|
wxUniversal README
|
|
|
|
==================
|
2001-12-11 18:53:22 +00:00
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
Welcome to wxUniversal!
|
2001-12-11 18:53:22 +00:00
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
Acknowledgements: wxUniversal wouldn't have been written without the
|
2002-04-11 19:00:03 +00:00
|
|
|
generous support of SciTech Software. Many thanks to Kendall Bennett and
|
2001-12-11 18:53:22 +00:00
|
|
|
Tom Ryan!
|
|
|
|
|
|
|
|
0. Introduction
|
|
|
|
---------------
|
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
wxUniversal is a port of wxWindows which implements the various GUI controls
|
2001-12-11 18:53:22 +00:00
|
|
|
by drawing them itself (using low level wxWindows classes). Please see
|
|
|
|
|
2002-04-11 19:00:03 +00:00
|
|
|
http://www.wxwindows.org/wxuniv.htm
|
2001-12-11 18:53:22 +00:00
|
|
|
|
|
|
|
for more details about it.
|
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
The advantage of wxUniversal is that you have precise control over the
|
2001-12-18 20:25:32 +00:00
|
|
|
controls' appearance (it is not always possible to change all aspects of the
|
2001-12-11 18:53:22 +00:00
|
|
|
native controls) and the theme support: the same program may be changed to
|
2001-12-18 20:25:32 +00:00
|
|
|
look completely differently without changing a single line of its code but
|
2001-12-11 18:53:22 +00:00
|
|
|
just changing the theme.
|
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
Another advantage is that it makes writing ports of wxWindows for other
|
2001-12-11 18:53:22 +00:00
|
|
|
platforms (such as OS/2, BeOS or QNX) much simpler, so it is of special
|
2001-12-18 20:25:32 +00:00
|
|
|
interest to people interested in porting wxWindows to another platform.
|
2001-12-11 18:53:22 +00:00
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
However, wxUniversal doesn't have a 100% native look and feel unlike the
|
2001-12-11 18:53:22 +00:00
|
|
|
other wxWindows ports - this is the price to pay for the extra flexibility.
|
|
|
|
|
2001-12-18 20:25:32 +00:00
|
|
|
1. Requirements and supported platforms
|
|
|
|
---------------------------------------
|
2001-12-11 18:53:22 +00:00
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
wxUniversal is used together with another wxWindows port which provides the
|
2002-04-11 19:00:03 +00:00
|
|
|
"low level classes" mentioned above. Currently it can be built with wxMSW,
|
|
|
|
wxGTK or wxX11. In any case, you should download the sources for the
|
2001-12-11 18:53:22 +00:00
|
|
|
appropriate toolkit in addition to wxUniversal - in fact, you should download
|
|
|
|
them first and then unpack wxUniversal in the same directory.
|
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
The requirements for wxUniversal are the same as for the underlying low level
|
2001-12-11 18:53:22 +00:00
|
|
|
toolkit.
|
|
|
|
|
|
|
|
2. Installing under Win32
|
|
|
|
-------------------------
|
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
If compiling from CVS, please copy include/wx/univ/setup0.h
|
|
|
|
to include/wx/univ/setup.h before following these steps.
|
|
|
|
|
2001-12-11 18:53:22 +00:00
|
|
|
a) Using Visual C++ 6.0
|
|
|
|
|
2001-12-18 20:25:32 +00:00
|
|
|
Simply open the src/wxUniv.dsw file in DevStudio and build it.
|
2002-08-18 22:42:58 +00:00
|
|
|
Then open the widgetsUniv.dsp file in samples/widgets to build
|
|
|
|
the widgets sample.
|
2001-12-11 18:53:22 +00:00
|
|
|
|
|
|
|
b) Cygwin
|
|
|
|
|
|
|
|
Please refer to the Unix section below
|
|
|
|
|
|
|
|
c) Other compilers
|
2002-12-04 14:11:26 +00:00
|
|
|
Borland:
|
|
|
|
in the wxwindows\src\msw directory run
|
|
|
|
'make -f makefile.b32 WXUSINGUNIV=1' to build the library and then run
|
|
|
|
'make -f makefile.b32 WXUSINGUNIV=1' in the sample directory which you wish
|
|
|
|
to build using the wxUniversal widgets. Use 'SET WXTHEME=GTK' [or WIN32 or METAL]
|
|
|
|
to test the existing themes
|
2001-12-11 18:53:22 +00:00
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
Unfortunately we don't have makefiles for any other compilers yet.
|
2001-12-11 18:53:22 +00:00
|
|
|
Please contact us if you would like to help us with creating one for the
|
|
|
|
compiler you use.
|
|
|
|
|
2001-12-18 20:25:32 +00:00
|
|
|
Note that you can use the wxUniversal classes, wxMSW and MicroWindows (from
|
|
|
|
Century Software) to build a different variant of wxUniversal than that
|
|
|
|
documented here. Please see docs/univ/readme.txt for further information.
|
2003-08-17 10:20:08 +00:00
|
|
|
Note that this port is not up-to-date and probably needs work
|
|
|
|
to compile.
|
|
|
|
|
|
|
|
Note that by default, wxUniv under MSW uses PostScript printing,
|
|
|
|
not Windows printing. To change to Windows printing, set
|
|
|
|
wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW to 0 in include/wx/univ/setup.h
|
|
|
|
before compiling.
|
2001-12-18 20:25:32 +00:00
|
|
|
|
2001-12-11 18:53:22 +00:00
|
|
|
3. Installing under Unix
|
|
|
|
------------------------
|
|
|
|
|
2002-04-11 19:00:03 +00:00
|
|
|
Please refer to the installation instructions for wxGTK or wxX11. The only
|
|
|
|
change for wxUniversal is that you must add "--enable-universal" switch to
|
|
|
|
the configure command line and for wxX11 even this is unnecessary, i.e. it
|
|
|
|
is enabled by default.
|
2001-12-11 18:53:22 +00:00
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
If compiling from CVS, please copy include/wx/univ/setup0.h
|
|
|
|
to include/wx/univ/setup.h before configuring.
|
|
|
|
|
2002-04-15 18:23:06 +00:00
|
|
|
4. Running wxUniv programs
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
wxUniv programs all honour the standard option "--theme" which allows to
|
|
|
|
specify the theme to be used by name. Currently there are the following
|
|
|
|
themes:
|
|
|
|
|
|
|
|
a) win32 -- Windows 95 look and feel
|
|
|
|
b) metal -- based on win32 but with gradient backgrounds
|
|
|
|
c) gtk -- GTK+ 1.x standard look and feel
|
|
|
|
|
|
|
|
Thus, to launch a program using gtk theme you may do "./program --theme=gtk".
|
|
|
|
|
|
|
|
It is also possible to change the default theme for all wxUniv applications
|
|
|
|
at once by setting the environment variable WXTHEME to the theme name.
|
|
|
|
|
|
|
|
5. Documentation and support
|
2001-12-11 18:53:22 +00:00
|
|
|
----------------------------
|
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
Please note that wxUniversal is not as mature as the other wxWindows ports
|
2001-12-11 18:53:22 +00:00
|
|
|
and is currently officially in alpha stage. In particular, it is not really
|
|
|
|
intended for the end users but rather for developers at the current stage and
|
|
|
|
this is why we don't provide any binaries for it.
|
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
There is no separate documentation for wxUniversal, please refer to wxWindows
|
2001-12-11 18:53:22 +00:00
|
|
|
documentation instead.
|
|
|
|
|
2002-12-16 10:45:09 +00:00
|
|
|
Support for wxUniversal is available from the same places as for wxWindows
|
2001-12-11 18:53:22 +00:00
|
|
|
itself, namely:
|
|
|
|
|
|
|
|
* Usenet newsgroup comp.soft-sys.wxwindows
|
|
|
|
|
|
|
|
* Mailing lists: see http://lists.wxwindows.org/ for more information
|
|
|
|
|
|
|
|
* WWW page: http://www.wxwindows.org/
|
|
|
|
|
|
|
|
|
2001-12-18 20:25:32 +00:00
|
|
|
Hope you find wxUniversal useful!
|
2001-12-11 18:53:22 +00:00
|
|
|
|
2002-04-11 19:00:03 +00:00
|
|
|
Vadim Zeitlin
|
2001-12-11 18:53:22 +00:00
|
|
|
|
|
|
|
|
2002-12-04 14:11:26 +00:00
|
|
|
This file is accurate for the version 2.3.4 of wxUniversal. It was last
|
2002-04-15 18:23:06 +00:00
|
|
|
modified on Apr 15, 2002.
|
2001-12-11 18:53:22 +00:00
|
|
|
|