2001-06-10 11:58:30 +00:00
|
|
|
# Microsoft Developer Studio Project File - Name="XrcDemoVC" - Package Owner=<4>
|
2000-10-10 17:10:24 +00:00
|
|
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
|
|
|
# ** DO NOT EDIT **
|
|
|
|
|
|
|
|
# TARGTYPE "Win32 (x86) Application" 0x0101
|
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
CFG=XrcDemoVC - Win32 Debug
|
2000-10-10 17:10:24 +00:00
|
|
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
|
|
|
!MESSAGE use the Export Makefile command and run
|
|
|
|
!MESSAGE
|
2001-06-10 11:58:30 +00:00
|
|
|
!MESSAGE NMAKE /f "XrcDemoVC.mak".
|
2001-06-11 07:49:38 +00:00
|
|
|
!MESSAGE
|
2000-10-10 17:10:24 +00:00
|
|
|
!MESSAGE You can specify a configuration when running NMAKE
|
|
|
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
|
|
|
!MESSAGE
|
2001-06-10 11:58:30 +00:00
|
|
|
!MESSAGE NMAKE /f "XrcDemoVC.mak" CFG="XrcDemoVC - Win32 Debug"
|
2001-06-11 07:49:38 +00:00
|
|
|
!MESSAGE
|
2000-10-10 17:10:24 +00:00
|
|
|
!MESSAGE Possible choices for configuration are:
|
|
|
|
!MESSAGE
|
2001-06-10 11:58:30 +00:00
|
|
|
!MESSAGE "XrcDemoVC - Win32 Release" (based on "Win32 (x86) Application")
|
|
|
|
!MESSAGE "XrcDemoVC - Win32 Debug" (based on "Win32 (x86) Application")
|
|
|
|
!MESSAGE "XrcDemoVC - Win32 Debug DLL" (based on "Win32 (x86) Application")
|
|
|
|
!MESSAGE "XrcDemoVC - Win32 Release DLL" (based on "Win32 (x86) Application")
|
2001-06-11 07:49:38 +00:00
|
|
|
!MESSAGE
|
2000-10-10 17:10:24 +00:00
|
|
|
|
|
|
|
# Begin Project
|
|
|
|
# PROP AllowPerConfigDependencies 0
|
|
|
|
# PROP Scc_ProjName ""
|
|
|
|
# PROP Scc_LocalPath ""
|
|
|
|
CPP=cl.exe
|
|
|
|
MTL=midl.exe
|
|
|
|
RSC=rc.exe
|
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
!IF "$(CFG)" == "XrcDemoVC - Win32 Release"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
|
|
|
# PROP BASE Use_MFC 0
|
|
|
|
# PROP BASE Use_Debug_Libraries 0
|
|
|
|
# PROP BASE Output_Dir "Release"
|
|
|
|
# PROP BASE Intermediate_Dir "Release"
|
|
|
|
# PROP BASE Target_Dir ""
|
|
|
|
# PROP Use_MFC 0
|
|
|
|
# PROP Use_Debug_Libraries 0
|
|
|
|
# PROP Output_Dir "Release"
|
|
|
|
# PROP Intermediate_Dir "Release"
|
|
|
|
# PROP Ignore_Export_Lib 0
|
|
|
|
# PROP Target_Dir ""
|
|
|
|
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
2001-11-19 17:47:23 +00:00
|
|
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /I "../../../lib/msw" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
2000-10-10 17:10:24 +00:00
|
|
|
# SUBTRACT CPP /YX
|
|
|
|
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
|
|
|
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
|
|
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
|
|
|
# ADD RSC /l 0x809 /d "NDEBUG"
|
|
|
|
BSC32=bscmake.exe
|
|
|
|
# ADD BASE BSC32 /nologo
|
|
|
|
# ADD BSC32 /nologo
|
|
|
|
LINK32=link.exe
|
|
|
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
2001-11-19 17:47:23 +00:00
|
|
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib jpeg.lib tiff.lib regex.lib wxxrc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/xmldemo.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Debug"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
|
|
|
# PROP BASE Use_MFC 0
|
|
|
|
# PROP BASE Use_Debug_Libraries 1
|
|
|
|
# PROP BASE Output_Dir "Debug"
|
|
|
|
# PROP BASE Intermediate_Dir "Debug"
|
|
|
|
# PROP BASE Target_Dir ""
|
|
|
|
# PROP Use_MFC 0
|
|
|
|
# PROP Use_Debug_Libraries 1
|
|
|
|
# PROP Output_Dir "Debug"
|
|
|
|
# PROP Intermediate_Dir "Debug"
|
|
|
|
# PROP Ignore_Export_Lib 0
|
|
|
|
# PROP Target_Dir ""
|
|
|
|
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
2001-11-19 17:47:23 +00:00
|
|
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../include" /I "../../../contrib/include" /I "../../../lib/mswd" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
|
2001-06-11 07:49:38 +00:00
|
|
|
# SUBTRACT CPP /YX /Yc /Yu
|
2000-10-10 17:10:24 +00:00
|
|
|
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
|
|
|
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
|
|
|
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
|
|
|
# ADD RSC /l 0x809 /d "_DEBUG"
|
|
|
|
BSC32=bscmake.exe
|
|
|
|
# ADD BASE BSC32 /nologo
|
|
|
|
# ADD BSC32 /nologo
|
|
|
|
LINK32=link.exe
|
|
|
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
2001-11-19 17:47:23 +00:00
|
|
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib regexd.lib wxxrcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/xmldemo.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Debug DLL"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
|
|
|
# PROP BASE Use_MFC 0
|
|
|
|
# PROP BASE Use_Debug_Libraries 1
|
|
|
|
# PROP BASE Output_Dir "DebugDLL"
|
|
|
|
# PROP BASE Intermediate_Dir "DebugDLL"
|
|
|
|
# PROP BASE Target_Dir ""
|
|
|
|
# PROP Use_MFC 0
|
|
|
|
# PROP Use_Debug_Libraries 1
|
|
|
|
# PROP Output_Dir "DebugDLL"
|
|
|
|
# PROP Intermediate_Dir "DebugDLL"
|
|
|
|
# PROP Ignore_Export_Lib 0
|
|
|
|
# PROP Target_Dir ""
|
|
|
|
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
2001-11-19 17:47:23 +00:00
|
|
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../include" /I "../../../contrib/include" /I "../../../lib/mswdlld" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /Yu"wx/wxprec.h" /FD /c
|
2000-10-10 17:10:24 +00:00
|
|
|
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
|
|
|
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
|
|
|
|
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
|
|
|
# ADD RSC /l 0x809 /d "_DEBUG"
|
|
|
|
BSC32=bscmake.exe
|
|
|
|
# ADD BASE BSC32 /nologo
|
|
|
|
# ADD BSC32 /nologo
|
|
|
|
LINK32=link.exe
|
|
|
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
2002-12-05 11:08:08 +00:00
|
|
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw250d.lib wxxrcd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/xmldemo.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Release DLL"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
|
|
|
# PROP BASE Use_MFC 0
|
|
|
|
# PROP BASE Use_Debug_Libraries 0
|
|
|
|
# PROP BASE Output_Dir "ReleaseDLL"
|
|
|
|
# PROP BASE Intermediate_Dir "ReleaseDLL"
|
|
|
|
# PROP BASE Target_Dir ""
|
|
|
|
# PROP Use_MFC 0
|
|
|
|
# PROP Use_Debug_Libraries 0
|
|
|
|
# PROP Output_Dir "ReleaseDLL"
|
|
|
|
# PROP Intermediate_Dir "ReleaseDLL"
|
|
|
|
# PROP Ignore_Export_Lib 0
|
|
|
|
# PROP Target_Dir ""
|
|
|
|
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
2001-11-19 17:47:23 +00:00
|
|
|
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../include" /I "../../../contrib/include" /I "../../../lib/mswdll" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /FD /c
|
2000-10-10 17:10:24 +00:00
|
|
|
# SUBTRACT CPP /YX
|
|
|
|
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
|
|
|
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
|
|
|
|
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
|
|
|
# ADD RSC /l 0x809 /d "NDEBUG"
|
|
|
|
BSC32=bscmake.exe
|
|
|
|
# ADD BASE BSC32 /nologo
|
|
|
|
# ADD BSC32 /nologo
|
|
|
|
LINK32=link.exe
|
|
|
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
|
2002-12-05 11:08:08 +00:00
|
|
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw250.lib wxxrc.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/xmldemo.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Begin Target
|
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
# Name "XrcDemoVC - Win32 Release"
|
|
|
|
# Name "XrcDemoVC - Win32 Debug"
|
|
|
|
# Name "XrcDemoVC - Win32 Debug DLL"
|
|
|
|
# Name "XrcDemoVC - Win32 Release DLL"
|
2000-10-10 17:10:24 +00:00
|
|
|
# Begin Source File
|
|
|
|
|
Applied [ 594925 ] Implement wxArtProvider and XRC together
By Robert O'Connor (robertoconnor)
This patch is a draft which successfully allows a wxArtProvider to serve out icons to bitmaps for XRC files.
The syntax to use a wxArtProvider bitmap is:
<bitmap stock_id="wxART_INFORMATION" stock_client="wxART_TOOLBAR">somefallbackicon.png</bitmap>
The bitmap is optional, and will only be used as a fallback image, if the wxArtProvider returned a wxNullBitmap for some reason.
The client attribute, if not specified, currently will be wxART_OTHER. Perhaps there should be a guessing heuristic of it being in a menu node to call wxART_MENU.
Usage of XRC resouces and wxArtProvider together can be seen in an updated /contrib/samples/xrc demo, which is a separate patch.
Search the wx-dev mailing lists for "wxArtProvider" and "XRC" for the full discussions on this feature's API design.
Applied patch [ 594932 ] Extended XRC XML resources sample
By Robert O'Connor (robertoconnor)
This is a more comprehensive introduction to how to get up and running using XRC in your new wxWindows project.
It describes both the basics (for new users) and advanced features. It consists of a demo of dialogs and frames loaded from XRC. Each dialog has a textctrl at the top of the dialog, which walks the new user through that feature.
There are 8 demos:
The 4 basic ones:
-A non-derived dialog, as typically used for an about dialog.
-A derived dialog that loads its resources from an XRC (a frequently-asked question on the mailing lists), and responds to some simple events, including the disable-another-control-via-EVT_UPDATE_UI that is another FAQ, and powerful and simple-to-use feature.
-A XRC reference "Controls" dialog, using a notebook. Each tab has a single control. All XRC handled widgets can be seen at a glance, and how to use them under XRC.
-An uncentered dialog, to demonstrate the easy use of <centered>1</centered> to automatically place a Dialog centered on its parent..
The 4 advanced ones:
-Embedding a custom class into an XRC dialog, by using the "unknown" class.
-Using wxArtProvider to use stock icons from within your your XRC resources.
-Using the platform attribute to selectively show a part of XRC based on the current OS.
-Runtime variable expansion (demo only. Not implemented at this time).
Also:
-The main frame is now demonstrated as being loaded as an XRC.
- The toolbar has longhelp tag demonstrated, and are hooked up to the same events as the menu to show how XRCID() works on the same tool and menuitem XRCID.
-Some custom icons for the demonstration were created, and put into the toolbar and menubar. A custom icon also for the demonstration.
-The example code has been put in 1 class per file (both .cpp and a matching .xrc), to make it much less confusing for a newcomer to figure out what class is what, expecially with all the wx macros for declaration and implementation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-16 11:24:46 +00:00
|
|
|
SOURCE=.\custclas.cpp
|
|
|
|
# End Source File
|
|
|
|
# Begin Source File
|
|
|
|
|
|
|
|
SOURCE=.\custclas.h
|
|
|
|
# End Source File
|
|
|
|
# Begin Source File
|
|
|
|
|
|
|
|
SOURCE=.\derivdlg.cpp
|
|
|
|
# End Source File
|
|
|
|
# Begin Source File
|
|
|
|
|
|
|
|
SOURCE=.\derivdlg.h
|
|
|
|
# End Source File
|
|
|
|
# Begin Source File
|
|
|
|
|
|
|
|
SOURCE=.\myframe.cpp
|
|
|
|
# End Source File
|
|
|
|
# Begin Source File
|
|
|
|
|
|
|
|
SOURCE=.\myframe.h
|
|
|
|
# End Source File
|
|
|
|
# Begin Source File
|
|
|
|
|
2001-06-11 07:49:38 +00:00
|
|
|
SOURCE=.\xrcdemo.cpp
|
2000-10-10 17:10:24 +00:00
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
!IF "$(CFG)" == "XrcDemoVC - Win32 Release"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Debug"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
|
|
|
# SUBTRACT CPP /YX /Yc /Yu
|
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Debug DLL"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
|
|
|
# SUBTRACT CPP /YX /Yc /Yu
|
|
|
|
|
2001-06-10 11:58:30 +00:00
|
|
|
!ELSEIF "$(CFG)" == "XrcDemoVC - Win32 Release DLL"
|
2000-10-10 17:10:24 +00:00
|
|
|
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# End Source File
|
|
|
|
# Begin Source File
|
|
|
|
|
2001-06-11 07:49:38 +00:00
|
|
|
SOURCE=.\xrcdemo.rc
|
2001-11-19 17:47:23 +00:00
|
|
|
# ADD BASE RSC /l 0x809
|
|
|
|
# ADD RSC /l 0x809 /i "../../../include"
|
2000-10-10 17:10:24 +00:00
|
|
|
# End Source File
|
|
|
|
# End Target
|
|
|
|
# End Project
|