Added new tech note for icon creation/conversion, corrected config.cpp
to include <ctype.h> (necessary if not including windows.h), corrected comment in mfctest.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3,20 +3,20 @@ src/wxvc.dsw
|
||||
src/wxvc_dll.dsp
|
||||
src/wxvc_dll.dsw
|
||||
|
||||
src/jpeg/jpeg.dsp
|
||||
src/jpeg/jpeg.dsw
|
||||
src/jpeg/JpegVC.dsp
|
||||
src/jpeg/JpegVC.dsw
|
||||
|
||||
src/tiff/tiff.dsp
|
||||
src/tiff/tiff.dsw
|
||||
src/tiff/TiffVC.dsp
|
||||
src/tiff/TiffVC.dsw
|
||||
|
||||
src/zlib/zlib.dsp
|
||||
src/zlib/zlib.dsw
|
||||
src/zlib/ZlibVC.dsp
|
||||
src/zlib/ZlibVC.dsw
|
||||
|
||||
src/png/png.dsp
|
||||
src/png/png.dsw
|
||||
src/png/PngVC.dsp
|
||||
src/png/PngVC.dsw
|
||||
|
||||
src/xpm/xpm.dsp
|
||||
src/xpm/xpm.dsw
|
||||
src/xpm/XpmVC.dsp
|
||||
src/xpm/XpmVC.dsw
|
||||
|
||||
samples/SamplesVC.dsw
|
||||
|
||||
|
@@ -6,5 +6,6 @@ TN0005 Adding a wxWindows contribution
|
||||
TN0006 Making and installing RPMs for wxWindows
|
||||
TN0007 Using and modifying the BC++ IDE files
|
||||
TN0008 How to learn wxWindows programming
|
||||
TN0009 Creating and converting icons
|
||||
|
||||
Version: $Id$
|
||||
|
60
docs/tech/tn0009.htm
Normal file
60
docs/tech/tn0009.htm
Normal file
@@ -0,0 +1,60 @@
|
||||
<HTML>
|
||||
|
||||
<HEAD>
|
||||
<TITLE>Creating and converting icons</TITLE>
|
||||
</HEAD>
|
||||
|
||||
<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#FF0000 VLINK=#000000>
|
||||
|
||||
<font face="Arial, Lucida Sans, Helvetica">
|
||||
|
||||
<a name="top"></a>
|
||||
|
||||
<table align=center width=100% border=4 cellpadding=5 cellspacing=0>
|
||||
<tr>
|
||||
<td bgcolor="#660000" align=left colspan=2>
|
||||
<font size=+1 face="Arial, Lucida Sans, Helvetica" color="#FFFFFF">
|
||||
Creating and converting icons
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<P>
|
||||
|
||||
Icons are bitmaps that may contain transparency information. Under X, icons are
|
||||
usually created from XPM files, which may be loaded from a file or created from
|
||||
data embedded in a C++ source file.<P>
|
||||
|
||||
Under Windows, icon files (extension .ico) may contain multiple icons for different sizes and colour
|
||||
depths, and can be loaded from a file or loaded from the Windows resources compiled
|
||||
into the executable.<P>
|
||||
|
||||
You can decide to use only XPMs on Windows and Unix, or you could use XPMs on Unix and
|
||||
Windows icons under Windows -- the latter will require some #idefs in your code or use of the wxICON macro.<P>
|
||||
|
||||
If you are using a compiler such as Borland C++, Visual C++ or Watcom C++, you
|
||||
can use the provided icon editor. However, if using Cygwin or Mingw32, there
|
||||
is no icon editor so you must obtain one separately, such as <a href="http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=00165P">IconEdit32</a>.<P>
|
||||
|
||||
To convert from XPM to BMP (which can be loaded or pasted into an icon editor to save as an ICO file),
|
||||
you can use Vadim Zeitlin's <a href="ftp://www.remstar.com/pub/wxwin/support/xpm2bmp.exe">xpm2bmp.exe</a> utility.
|
||||
To convert from BMP to XPM, you can use <a href="ftp://www.remstar.com/pub/wxwin/support/xpmshow.exe">xpmshow.exe</a>
|
||||
(sometimes renamed bmp2xpm.exe) which is actually am old wxWindows 1.68 utility. You will have to edit the resulting
|
||||
file since the full path is used as the variable name, plus you may wish to specify a transparent colour e.g.:<P>
|
||||
|
||||
<pre>
|
||||
" s None c None",
|
||||
</pre>
|
||||
|
||||
This will indicate that the space character will be taken as the transparent colour throughout the image.<P>
|
||||
|
||||
<!--
|
||||
Author: JS
|
||||
Version: $Id$
|
||||
-->
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
@@ -46,6 +46,9 @@
|
||||
// version. Perhaps someone else is a wizard at working out the required settings
|
||||
// in the wxWin library and the sample; then debugging the assert problem may be
|
||||
// easier.
|
||||
//
|
||||
// (4) Compiling wxWindows in DLL mode currently includes windows.h, so you must only
|
||||
// try linking wxWindows statically.
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
@@ -56,8 +59,8 @@
|
||||
|
||||
#include "wx/wx.h"
|
||||
|
||||
#ifdef _WINDOWS_
|
||||
#error Sorry, you need to edit include/wx/wxprec.h, comment out the windows.h inclusion, and recompile.
|
||||
#if defined(_WINDOWS_) || !wxUSE_MFC
|
||||
#error Sorry, you need to edit include/wx/msw/setup.h, set wxUSE_MFC to 1, and recompile.
|
||||
#endif
|
||||
|
||||
#ifdef new
|
||||
|
@@ -42,6 +42,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global and class static variables
|
||||
|
Reference in New Issue
Block a user