]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoNo changes, just minor cleanup.
Vadim Zeitlin [Fri, 18 Dec 2009 14:46:44 +0000 (14:46 +0000)] 
No changes, just minor cleanup.

Don't call wxWindow::PrepareDC() which doesn't do anything anyhow.

Use wxBitmap::IsOk() instead of Ok().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRestore the use of the correct brush for toolbar background erasing.
Vadim Zeitlin [Fri, 18 Dec 2009 14:46:38 +0000 (14:46 +0000)] 
Restore the use of the correct brush for toolbar background erasing.

The call to SetBrush() was mistakenly removed in r62850 but it is needed
because wxClientDC only inherits background colour but not the brush used by
DrawRectangle() call in wxToolBar::MSWEraseRect(), so the wrong colour was
used under systems < Vista.

Restore this call now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect wxDateTime::GetWeekOfMonth() for days in the beginning of January.
Vadim Zeitlin [Thu, 17 Dec 2009 17:51:12 +0000 (17:51 +0000)] 
Correct wxDateTime::GetWeekOfMonth() for days in the beginning of January.

This function was implemented in terms of GetWeekOfYear() which made it tricky
to get it right as GetWeekOfYear() can, correctly, return week number for the
previous year for the first days of January (and also from the next one for
the last days of December).

Replace this implementation with a simple one directly counting the number of
weeks since the first of the month, this seems to be much simpler and does
pass the new unit test case which the old version failed.

Also make the unit test failures more informative by using
WX_ASSERT_EQUAL_MESSAGE() instead of CPPUNIT_ASSERT_EQUAL().

See #11561.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd test of accelerators using both ASCII and non-ASCII keys to the sample.
Vadim Zeitlin [Thu, 17 Dec 2009 16:44:22 +0000 (16:44 +0000)] 
Add test of accelerators using both ASCII and non-ASCII keys to the sample.

Test using 'Ctrl-A', just 'A' and 'Esc' as accelerators as all of them except
the first one were reported not to work in some cases.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAlways use FVIRTKEY for the accelerators under MSW.
Vadim Zeitlin [Thu, 17 Dec 2009 16:44:09 +0000 (16:44 +0000)] 
Always use FVIRTKEY for the accelerators under MSW.

Not using FVIRTKEY results in problems in non-US keyboard layouts and, in
fact, we were already always using it because wxCharCodeWXToMSW() returned
true in its output IsVirtual argument most of the time.

Just do it always now and also remove IsVirtual parameter with badly (if at
all...) defined meaning from wxCharCodeWXToMSW() as it's not used anywhere any
longer.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAllow wxPropertyGrid::RecalculateVirtualSize() execute even if pg is not completely...
Jaakko Salli [Thu, 17 Dec 2009 14:41:57 +0000 (14:41 +0000)] 
Allow wxPropertyGrid::RecalculateVirtualSize() execute even if pg is not completely initialized (otherwise virtual size calculations may go wrong)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosupporting sleep mode properly, see #11557
Stefan Csomor [Thu, 17 Dec 2009 12:15:48 +0000 (12:15 +0000)] 
supporting sleep mode properly, see #11557

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoInitialize all fields of EXCEPINFO object to avoid crashes later.
Vadim Zeitlin [Thu, 17 Dec 2009 10:52:02 +0000 (10:52 +0000)] 
Initialize all fields of EXCEPINFO object to avoid crashes later.

We could call SysFreeString() on uninitialized pointers if IDispatch::Invoke()
failed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect typo in wxEVT_COMMAND_LISTBOX_DOUBLECLICKED.
Vadim Zeitlin [Wed, 16 Dec 2009 19:27:34 +0000 (19:27 +0000)] 
Correct typo in wxEVT_COMMAND_LISTBOX_DOUBLECLICKED.

An underscore was omitted between LISTBOX and DOUBLECLICKED.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed display of 'InlineHelp' attribute
Jaakko Salli [Wed, 16 Dec 2009 18:59:46 +0000 (18:59 +0000)] 
Fixed display of 'InlineHelp' attribute

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSlightly improved check whether or not to execute wxPropertyGrid::RecalculateVirtualS...
Jaakko Salli [Wed, 16 Dec 2009 18:48:42 +0000 (18:48 +0000)] 
Slightly improved check whether or not to execute wxPropertyGrid::RecalculateVirtualSize()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agopreserve type when loaded image is rescaled, #11543
Paul Cornett [Wed, 16 Dec 2009 17:10:52 +0000 (17:10 +0000)] 
preserve type when loaded image is rescaled, #11543

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoallow setting client size to work properly before window is shown
Paul Cornett [Wed, 16 Dec 2009 06:32:23 +0000 (06:32 +0000)] 
allow setting client size to work properly before window is shown

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAvoid GTK+ errors when using AUI wxPseudoTransparentFrame hack.
Vadim Zeitlin [Tue, 15 Dec 2009 22:44:54 +0000 (22:44 +0000)] 
Avoid GTK+ errors when using AUI wxPseudoTransparentFrame hack.

wxPseudoTransparentFrame is not a top level window at all and the code in
wxGTK wxTopLevelWindow::DoSetSizeHints() fails for it when it is called from
wxWindowBase::CreateBase() because of it and spits GTK+ errors as it calls
gtk_window_set_geometry_hints() with NULL widget.

Fix this by simply skipping wxTopLevelWindow implementation of this method in
wxPseudoTransparentFrame. A better fix would be to get rid of this hack
completely, of course.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove asserts in wxChoicebook::Get/SetPageImage().
Vadim Zeitlin [Tue, 15 Dec 2009 21:12:06 +0000 (21:12 +0000)] 
Remove asserts in wxChoicebook::Get/SetPageImage().

It's better to silently return an error code than assert when these methods
are called as their failure is relatively harmless and the user code may call
them via base class pointer without caring if it works with a control which
supports images or not.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agodefine NDEBUG if not using debug CRT
Václav Slavík [Tue, 15 Dec 2009 15:38:05 +0000 (15:38 +0000)] 
define NDEBUG if not using debug CRT

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agocompilation fix for wxUSE_IMAGE=0 case
Václav Slavík [Tue, 15 Dec 2009 11:25:11 +0000 (11:25 +0000)] 
compilation fix for wxUSE_IMAGE=0 case

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agocompilation fix for wxUSE_IMAGE=0 caseinclude/wx/iconbndl.h
Václav Slavík [Tue, 15 Dec 2009 11:24:50 +0000 (11:24 +0000)] 
compilation fix for wxUSE_IMAGE=0 caseinclude/wx/iconbndl.h

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoPCH compilation fix
Václav Slavík [Tue, 15 Dec 2009 11:24:17 +0000 (11:24 +0000)] 
PCH compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAvoid painting generic wxDataViewCtrl if it has no columns.
Vadim Zeitlin [Mon, 14 Dec 2009 19:17:12 +0000 (19:17 +0000)] 
Avoid painting generic wxDataViewCtrl if it has no columns.

The code in wxDataViewMainWindow::OnPaint() relied on having at least the
first column and didn't work for a completely empty control. Just don't paint
it at all in this case as it's unnecessary anyhow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMake wxPG_EX_MULTIPLE_SELECTION behave more like a Windows list box (regarding Ctrl...
Jaakko Salli [Mon, 14 Dec 2009 16:13:21 +0000 (16:13 +0000)] 
Make wxPG_EX_MULTIPLE_SELECTION behave more like a Windows list box (regarding Ctrl and Shift keys)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDetermine better whether the property editor needs to be refreshed in wxPGProperty...
Jaakko Salli [Mon, 14 Dec 2009 15:33:50 +0000 (15:33 +0000)] 
Determine better whether the property editor needs to be refreshed in wxPGProperty::SetValue()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years ago'Set to Unspecified' -> 'Set Value to Unspecified'
Jaakko Salli [Mon, 14 Dec 2009 15:18:52 +0000 (15:18 +0000)] 
'Set to Unspecified' -> 'Set Value to Unspecified'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSet correct m_state in wxPGCheckBoxEditor::SetValueToUnspecified()
Jaakko Salli [Mon, 14 Dec 2009 15:17:02 +0000 (15:17 +0000)] 
Set correct m_state in wxPGCheckBoxEditor::SetValueToUnspecified()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAlways refresh the editor when setting property value to unspecified.
Jaakko Salli [Mon, 14 Dec 2009 15:15:35 +0000 (15:15 +0000)] 
Always refresh the editor when setting property value to unspecified.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed unspecified property value rendering for various editor types (including check...
Jaakko Salli [Mon, 14 Dec 2009 15:12:29 +0000 (15:12 +0000)] 
Fixed unspecified property value rendering for various editor types (including check box)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRestore correct access to wxGenericStaticText::Set{Font,Label}.
Vadim Zeitlin [Mon, 14 Dec 2009 12:41:55 +0000 (12:41 +0000)] 
Restore correct access to wxGenericStaticText::Set{Font,Label}.

Accessibility of these methods was accidentally changed to protected in r62821
and this broke wxUniv compilation, make them public again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove unnecessary Mac-specific TOOLKIT_LOWERCASE setting.
Vadim Zeitlin [Sun, 13 Dec 2009 12:52:59 +0000 (12:52 +0000)] 
Remove unnecessary Mac-specific TOOLKIT_LOWERCASE setting.

TOOLKIT is never set to "MAC" at all (it is one of OSX_{CARBON,COCOA,IPHONE})
so it is not necessary to test for it. And for the other cases the special
logic for OS X ports was the same as the general case so it seems to be
unnecessary as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd --with-[osx_]iphone switch to configure.
Vadim Zeitlin [Sun, 13 Dec 2009 12:52:53 +0000 (12:52 +0000)] 
Add --with-[osx_]iphone switch to configure.

This is another Mac (wxUSE_MAC is defined) port with TOOLKIT=OSX_IPHONE.

Also use this port by default for arm-apple-darwin platforms.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoTest for sw_vers availability before calling it in configure.
Vadim Zeitlin [Sun, 13 Dec 2009 12:52:47 +0000 (12:52 +0000)] 
Test for sw_vers availability before calling it in configure.

There is no sw_vers when cross-compiling, just assume 10.4 system in this
case and point the user to --with-macosx-version-min which can be used to
override this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRename --with-cocoa configure switch to --with-old_cocoa to avoid confusion.
Vadim Zeitlin [Sun, 13 Dec 2009 12:52:42 +0000 (12:52 +0000)] 
Rename --with-cocoa configure switch to --with-old_cocoa to avoid confusion.

Change --with-cocoa to be synonym for --with-osx_cocoa, add --with-carbon as a
synonym for --with-osx_carbon for consistency and --with-osx as a synonym for
--with-mac.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded wxPropertyGridManager header support; Refactored wxPropertyGrid DoSetSplitterPo...
Jaakko Salli [Sun, 13 Dec 2009 12:00:04 +0000 (12:00 +0000)] 
Added wxPropertyGridManager header support; Refactored wxPropertyGrid DoSetSplitterPosition() code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agorearranging contentview, adding toolbar
Stefan Csomor [Sat, 12 Dec 2009 14:01:28 +0000 (14:01 +0000)] 
rearranging contentview, adding toolbar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agorearranging contentview, adding toolbar
Stefan Csomor [Sat, 12 Dec 2009 13:40:24 +0000 (13:40 +0000)] 
rearranging contentview, adding toolbar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agowxHeaderColumnBase -> wxHeaderColumn; Fixed UpdateColumnWidthToFit() sample code
Jaakko Salli [Sat, 12 Dec 2009 12:24:28 +0000 (12:24 +0000)] 
wxHeaderColumnBase -> wxHeaderColumn; Fixed UpdateColumnWidthToFit() sample code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoOn Windows, force read-only property editor wxTextCtrl to have 'white' background...
Jaakko Salli [Sat, 12 Dec 2009 10:10:15 +0000 (10:10 +0000)] 
On Windows, force read-only property editor wxTextCtrl to have 'white' background (for now...)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded a proper log frame to the propgrid sample
Jaakko Salli [Sat, 12 Dec 2009 09:59:20 +0000 (09:59 +0000)] 
Added a proper log frame to the propgrid sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoGenerate wxPropertyGrid splitter (column divider) events: wxEVT_PG_COL_BEGIN_DRAG...
Jaakko Salli [Sat, 12 Dec 2009 09:38:10 +0000 (09:38 +0000)] 
Generate wxPropertyGrid splitter (column divider) events: wxEVT_PG_COL_BEGIN_DRAG, wxEVT_PG_COL_DRAGGING, wxEVT_PG_COL_END_DRAG

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed incorrect use of RemoveAt() in wxPropertyGridPageState::SetColumnCount() (fixes...
Jaakko Salli [Fri, 11 Dec 2009 15:50:04 +0000 (15:50 +0000)] 
Fixed incorrect use of RemoveAt() in wxPropertyGridPageState::SetColumnCount() (fixes #11539)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd support for stretchable spaces to wxToolBar.
Vadim Zeitlin [Thu, 10 Dec 2009 03:04:19 +0000 (03:04 +0000)] 
Add support for stretchable spaces to wxToolBar.

Stretchable spaces consume all extra toolbar space not allocated to the fixed
size items. They can in particular be used to right-align (some) toolbar tools.

Add and document the new API, change the sample to show it and implement it
for MSW, GTK and OS X/Cocoa.

Also refactor MSW background erasing/repainting code to avoid duplicated calls
to DrawThemeBackground(), call it from a new helper MSWEraseRect() function.

Note that we may want to add support for "invisible" separators, IOW
non-stretchable spaces. This could be easily done for MSW after the changes in
this commit and is supported natively by GTK+ and Cocoa so implementing this
would be trivial if there is any interest.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRename gtk{,1}/tbargtk.{h,cpp} to toolbar.{h,cpp}.
Vadim Zeitlin [Thu, 10 Dec 2009 03:04:07 +0000 (03:04 +0000)] 
Rename gtk{,1}/tbargtk.{h,cpp} to toolbar.{h,cpp}.

We don't use crptknm$port.cpp naming convention even for MSW any more and
there is really no reason to continue to do it for just this one file in
wxGTK.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSet correct toolbar width in wxMSW wxFrame.
Vadim Zeitlin [Thu, 10 Dec 2009 02:59:16 +0000 (02:59 +0000)] 
Set correct toolbar width in wxMSW wxFrame.

The hack introduced in r22410 artificially set wrong size for toolbar under
MSW. This completely breaks any calculations that can be done using it (e.g.
to find the space available for the stretchable part of the toolbar) and is
completely and utterly unexpected.

Revert it, toolbar flicker must be dealt in another way if it is still a
problem.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoNo changes, just refactor wxToolBarToolBase ctors.
Vadim Zeitlin [Thu, 10 Dec 2009 02:59:11 +0000 (02:59 +0000)] 
No changes, just refactor wxToolBarToolBase ctors.

Add the usual Init() function for common initialization.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoNo changes, just slightly simplify the tool insertion code.
Vadim Zeitlin [Thu, 10 Dec 2009 02:59:02 +0000 (02:59 +0000)] 
No changes, just slightly simplify the tool insertion code.

Added a helper DoInsertNewTool() function to avoid code duplication and ensure
that we never forget to delete a new tool if inserting it into the toolbar
failed.

Also explicitly document that the tool passed to the public InsertTool() is
not owned by the toolbar and so must be deleted by the caller if its insertion
failed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRewrote wxRibbonPage realisation and layout code to avoid setting the position and...
Peter Cawley [Wed, 9 Dec 2009 18:48:41 +0000 (18:48 +0000)] 
Rewrote wxRibbonPage realisation and layout code to avoid setting the position and size of panels multiple times.
Fixed memory leak in wxRibbonToolBar::Realize().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAvoid outputting the assert message twice in non-GUI code.
Vadim Zeitlin [Wed, 9 Dec 2009 14:59:26 +0000 (14:59 +0000)] 
Avoid outputting the assert message twice in non-GUI code.

As we always log the assert message in ::ShowAssertDialog() itself there is no
need to log it again in wxAppTraitsBase::ShowAssertDialog().

Also show the "please wait while generating stack trace information" in
wxAppTraitsBase::GetAssertStackTrace() itself instead of doing it in both
places which call it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't limit the number of stack frames in GTK assert dialog to 20.
Vadim Zeitlin [Wed, 9 Dec 2009 14:59:13 +0000 (14:59 +0000)] 
Don't limit the number of stack frames in GTK assert dialog to 20.

This dialog uses a scrollbar to keep its vertical size reasonable in any case
so there is absolutely no danger of making it too tall even if we show more
frames in it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoBetter handling for asserts in non-main threads.
Vadim Zeitlin [Wed, 9 Dec 2009 14:59:08 +0000 (14:59 +0000)] 
Better handling for asserts in non-main threads.

Don't call wxTrap() when an assert in a non-main thread fails. As asserts are
now always enabled by default, this is not a good idea. Instead just show the
full details about the assert failure using wxMessageOutputDebug under the
platforms without MT-safe message box function (i.e. everything but MSW
currently).

Add a possibility to test an assert happening in non-main thread to the except
sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoNo real changes, just remove __WXDEBUG__ tests.
Vadim Zeitlin [Wed, 9 Dec 2009 14:59:01 +0000 (14:59 +0000)] 
No real changes, just remove __WXDEBUG__ tests.

These tests are unnecessary now because asserts are almost always enabled. We
could test for wxDEBUG_LEVEL but the code still compiles even if it's defined
as 0 so there doesn't seem to be any need for it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoOverride OnAssertFailure() and not deprecated OnAssert() in except sample.
Vadim Zeitlin [Wed, 9 Dec 2009 14:58:56 +0000 (14:58 +0000)] 
Override OnAssertFailure() and not deprecated OnAssert() in except sample.

Also make the overridden version more interesting instead of just calling the
base class method from it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDocument that wxTrap() now traps [almost] always.
Vadim Zeitlin [Wed, 9 Dec 2009 13:45:41 +0000 (13:45 +0000)] 
Document that wxTrap() now traps [almost] always.

Don't mention the words "release mode" as there is no such thing now, instead
refer to wxDEBUG_LEVEL explicitly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoExplicitly link the SDK application example with user32.lib.
Vadim Zeitlin [Wed, 9 Dec 2009 13:31:46 +0000 (13:31 +0000)] 
Explicitly link the SDK application example with user32.lib.

As this sample uses GUI Windows functions, it requires this library.

Not sure why it isn't added by bakefile automatically for app-type==gui
target.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSTL build compilation fix.
Vadim Zeitlin [Wed, 9 Dec 2009 13:27:53 +0000 (13:27 +0000)] 
STL build compilation fix.

Explicitly cast wxWindowBase pointer to wxWindow before passing it to
wxWindowList::Find().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosupport for getting current event loop on iPhone
Stefan Csomor [Wed, 9 Dec 2009 08:21:28 +0000 (08:21 +0000)] 
support for getting current event loop on iPhone

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoavoiding string conversions on 1st param of wxStat, as the latter is having a param...
Stefan Csomor [Wed, 9 Dec 2009 07:38:22 +0000 (07:38 +0000)] 
avoiding string conversions on 1st param of wxStat, as the latter is having a param of wxString now always and does the conversion internally

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agousing on all OSX variants
Stefan Csomor [Wed, 9 Dec 2009 07:29:43 +0000 (07:29 +0000)] 
using on all OSX variants

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing toolbar support, adding iphone
Stefan Csomor [Wed, 9 Dec 2009 07:28:51 +0000 (07:28 +0000)] 
fixing toolbar support, adding iphone

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agomake sure it is compilable w/o menus (eg on iPhone)
Stefan Csomor [Wed, 9 Dec 2009 07:27:22 +0000 (07:27 +0000)] 
make sure it is compilable w/o menus (eg on iPhone)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoremove workaround
Stefan Csomor [Wed, 9 Dec 2009 07:26:10 +0000 (07:26 +0000)] 
remove workaround

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoavoid double define warnings
Stefan Csomor [Wed, 9 Dec 2009 07:24:50 +0000 (07:24 +0000)] 
avoid double define warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd OSX prefix, and be clear that this is OS X only API to avoid any expectation...
Kevin Ollivier [Wed, 9 Dec 2009 05:25:32 +0000 (05:25 +0000)] 
Add OSX prefix, and be clear that this is OS X only API to avoid any expectation that this API may work elsewhere.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse X64 machine type for MSVC linker instead of old AMD64.
Vadim Zeitlin [Tue, 8 Dec 2009 16:36:37 +0000 (16:36 +0000)] 
Use X64 machine type for MSVC linker instead of old AMD64.

The officially supported machine type name is X64 now, even if AMD64 is still
supported.

Closes #10711.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix duplicate accelerator use in animate sample.
Vadim Zeitlin [Tue, 8 Dec 2009 16:35:54 +0000 (16:35 +0000)] 
Fix duplicate accelerator use in animate sample.

Both "Play" and "Stop" used Ctrl+P.

Closes #11425.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMake wxPORTRAIT and wxLANDSCAPE elements of wxPrintOrientation enum.
Vadim Zeitlin [Tue, 8 Dec 2009 16:35:47 +0000 (16:35 +0000)] 
Make wxPORTRAIT and wxLANDSCAPE elements of wxPrintOrientation enum.

Change wxPrintData::SetOrientation() to take wxPrintOrientation instead of
int.

Closes #11393.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoVisually show the cells boundaries in layout sample grid sizer test.
Vadim Zeitlin [Tue, 8 Dec 2009 15:56:26 +0000 (15:56 +0000)] 
Visually show the cells boundaries in layout sample grid sizer test.

Closes #11456.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't override DoGetBestSize() in wxGenericStaticText, it's unnecessary.
Vadim Zeitlin [Tue, 8 Dec 2009 15:56:21 +0000 (15:56 +0000)] 
Don't override DoGetBestSize() in wxGenericStaticText, it's unnecessary.

The base class already does exactly the same thing -- except that it also
accounts for the borders properly.

Also fix access for a couple of DoXXX() member functions which should be
protected and an event handler which can be private.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoImplement wxWindow::DoGetBorderSize() in the trivial case of wxBORDER_NONE.
Vadim Zeitlin [Tue, 8 Dec 2009 15:56:14 +0000 (15:56 +0000)] 
Implement wxWindow::DoGetBorderSize() in the trivial case of wxBORDER_NONE.

This fixes an assert in wxGenericStaticText which overrode
DoGetBestClientSize() but not DoGetBorderSize().

It would still be useful to implement DoGetBorderSize() in wxGTK (and other
ports) in general too as using wxGenericStaticText with non-default border
still doesn't work.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix unused parameter warning after last commit (r62818).
Vadim Zeitlin [Tue, 8 Dec 2009 15:56:08 +0000 (15:56 +0000)] 
Fix unused parameter warning after last commit (r62818).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix event object in wxSysColourChangedEvent.
Vadim Zeitlin [Tue, 8 Dec 2009 15:36:51 +0000 (15:36 +0000)] 
Fix event object in wxSysColourChangedEvent.

The handler for this event in the base class incorrectly changed the event
object of the original event instead of setting it for the event being sent to
the window children as it was supposed to.

Closes #11458.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't set the initial size as minimal size for top level windows.
Vadim Zeitlin [Tue, 8 Dec 2009 15:24:59 +0000 (15:24 +0000)] 
Don't set the initial size as minimal size for top level windows.

Correct the change of r62814: only call SetMinSize() for non-top-level windows
as the user should be able to resize the top-level ones to be smaller than
their initial size.

This also fixes the GTK+ warning resulting from calling wxTLW::SetMinSize()
from the ctor, before the window is realized.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSpeed up adding pages during freezing
Julian Smart [Tue, 8 Dec 2009 14:07:43 +0000 (14:07 +0000)] 
Speed up adding pages during freezing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSet initial window size as its minimal size.
Vadim Zeitlin [Mon, 7 Dec 2009 23:37:36 +0000 (23:37 +0000)] 
Set initial window size as its minimal size.

The change of r62306 broke the code which relied on the window created with a
given initial size to never become smaller than this size. This was to be
expected because the best size of such window is now (1, 1) and not its
initial size but we still need to preserve the old behaviour for compatibility
and also because it usually does make sense to avoid shrinking the window with
an explicitly specified initial size beneath this value.

So call SetMinSize() with the initial size explicitly now in wxWindowBase
ctor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoReset wxTheApp when starting to destroy the object it points to.
Vadim Zeitlin [Mon, 7 Dec 2009 17:03:25 +0000 (17:03 +0000)] 
Reset wxTheApp when starting to destroy the object it points to.

Using wxTheApp when the corresponding object is already half destroyed can't
be a good idea so reset it to NULL as soon as possible.

Closes #11525.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd a very simple example of a Win32 application using wx DLL.
Vadim Zeitlin [Mon, 7 Dec 2009 16:27:23 +0000 (16:27 +0000)] 
Add a very simple example of a Win32 application using wx DLL.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse __declspec(dllexport) instead of WXEXPORT in dll sample header.
Vadim Zeitlin [Mon, 7 Dec 2009 16:27:14 +0000 (16:27 +0000)] 
Use __declspec(dllexport) instead of WXEXPORT in dll sample header.

This header can be included from non-wx code so we can't use wx symbols in it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDocument wxListCtrl::FindItem() return value.
Vadim Zeitlin [Mon, 7 Dec 2009 15:26:31 +0000 (15:26 +0000)] 
Document wxListCtrl::FindItem() return value.

In particular mention that it returns -1 if no items were found.

Closes #11523.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't crash if no document
Julian Smart [Mon, 7 Dec 2009 15:23:09 +0000 (15:23 +0000)] 
Don't crash if no document

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSafer access of member variables
Julian Smart [Mon, 7 Dec 2009 15:05:28 +0000 (15:05 +0000)] 
Safer access of member variables

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoGenerate erase background events for native controls too under MSW.
Vadim Zeitlin [Mon, 7 Dec 2009 13:37:01 +0000 (13:37 +0000)] 
Generate erase background events for native controls too under MSW.

Remove the test which prevented the generation of erase background events from
wxMSW::wxWindow::HandleEraseBkgnd(). Although it is true that native controls
mostly erase background on their own, there are exceptions: we must erase the
background of wxToolBar ourselves, for example. More importantly, there is no
reason to prevent the user code from defining wxEVT_ERASE_BACKGROUND handlers
for the native controls as this works just fine under MSW (although it doesn't
under GTK nor probably other ports...). So also add a test erase background
handler to the toolbar sample to verify that this does work.

Closes #11514.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse white background by default for multiline readonly wxTextCtrl under MSW.
Vadim Zeitlin [Mon, 7 Dec 2009 05:01:21 +0000 (05:01 +0000)] 
Use white background by default for multiline readonly wxTextCtrl under MSW.

The best default behaviour seems to be to use white background for multiline
text controls even when they're read-only, as in previous wx versions.

Also see #11521 which could be implemented to make this configurable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMove wxMSW wxTextCtrl::GetDefaultAttributes() to wxTextCtrlBase.
Vadim Zeitlin [Mon, 7 Dec 2009 05:01:14 +0000 (05:01 +0000)] 
Move wxMSW wxTextCtrl::GetDefaultAttributes() to wxTextCtrlBase.

This commit doesn't introduce any changes in the control behaviour, it simply
moves the existing method to the base class because it is not MSW-specific.

Also implement wxTextCtrlBase::GetClassDefaultAttributes() because if a class
implements GetDefaultAttributes() it should implement it as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDefine MY_DLL_BUILDING symbol for dll sample DLL build.
Vadim Zeitlin [Mon, 7 Dec 2009 03:04:39 +0000 (03:04 +0000)] 
Define MY_DLL_BUILDING symbol for dll sample DLL build.

This is necessary to properly define MY_DLL_DECL as either WXIMPORT or
WXEXPORT depending on whether my_dll.h is included from DLL itself or from
outside it. Without this, MSVC generated warnings about inconsistent dll
linkage.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd semi-public wxDynamicLibrary::MSWGetModuleHandle().
Vadim Zeitlin [Mon, 7 Dec 2009 03:04:33 +0000 (03:04 +0000)] 
Add semi-public wxDynamicLibrary::MSWGetModuleHandle().

Rename old private wxGetModuleHandle() function to wxDynamicLibrary::
MSWGetModuleHandle() to allow its use in the dll sample.

This fixes the sample compilation with VC6 which lacks GetModuleHandleEx()-
related declarations.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect placement of calling convention keyword: must follow the return type.
Vadim Zeitlin [Mon, 7 Dec 2009 03:04:27 +0000 (03:04 +0000)] 
Correct placement of calling convention keyword: must follow the return type.

Using __stdcall before the return type results in a warning with VC6 and an
error with VC9, place it after the return type.

Also use wxSTDCALL instead of just __stdcall for potentially better
compatibility with other compilers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRegenerate dll samples makefiles using the correct source file name.
Vadim Zeitlin [Mon, 7 Dec 2009 03:04:22 +0000 (03:04 +0000)] 
Regenerate dll samples makefiles using the correct source file name.

The file is called wx_exe.cpp and not dll_user_wx.cpp in the svn, do use the
correct name.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove a couple of VC6 workspace files for the samples.
Vadim Zeitlin [Mon, 7 Dec 2009 02:20:05 +0000 (02:20 +0000)] 
Remove a couple of VC6 workspace files for the samples.

See r62797.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove the MSVC solution files added with the new dll sample.
Vadim Zeitlin [Mon, 7 Dec 2009 02:18:10 +0000 (02:18 +0000)] 
Remove the MSVC solution files added with the new dll sample.

We don't keep solution files in svn for the other samples, there is no reason
for this one to be exceptional.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd wxTLW::SetModified to allow apps to set the TLW's dirty state. On Mac this gives...
Kevin Ollivier [Mon, 7 Dec 2009 01:54:21 +0000 (01:54 +0000)] 
Add wxTLW::SetModified to allow apps to set the TLW's dirty state. On Mac this gives us the dot in the close button, not implemented elsewhere yet.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoHandle deprecated style so we don't assert and then crash.
Kevin Ollivier [Sun, 6 Dec 2009 16:32:11 +0000 (16:32 +0000)] 
Handle deprecated style so we don't assert and then crash.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRestore TAB in accelerator string wrong removed by r62791.
Vadim Zeitlin [Sun, 6 Dec 2009 15:31:02 +0000 (15:31 +0000)] 
Restore TAB in accelerator string wrong removed by r62791.

See #11512.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect two bugs in wxMBConv::FromWChar() with non NUL-terminated strings.
Vadim Zeitlin [Sun, 6 Dec 2009 02:30:05 +0000 (02:30 +0000)] 
Correct two bugs in wxMBConv::FromWChar() with non NUL-terminated strings.

The variable "lenChunk" was incorrectly used as the length of the wide string
chunk which could result in wrong output.

Worse, the output buffer could be overflown for the final chunk because it
didn't have to have enough space for the trailing NUL(s) in it.

Fix both bugs and added unit tests for them.

Based on patch by Kuang-che Wu.

Closes #11486.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMinor corrections to ToWChar() comment.
Vadim Zeitlin [Sun, 6 Dec 2009 02:29:56 +0000 (02:29 +0000)] 
Minor corrections to ToWChar() comment.

Don't refer to the non-existent outputBuf parameter and don't imply that the
value of dstLen matters to decide whether we really convert or not -- only
whether dst pointer itself is NULL or not does.

See #11486.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse wxAcceleratorEntry::ToString() for undo/redo accelerator labels.
Vadim Zeitlin [Sun, 6 Dec 2009 02:29:49 +0000 (02:29 +0000)] 
Use wxAcceleratorEntry::ToString() for undo/redo accelerator labels.

Don't hardcode the string representation of the accelerators, it was
inconsistent with the rest of wxWidgets which used '-' while here a '+' was
used.

Closes #11512.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix wxFD_CLR() definition for Intel compiler under Linux.
Vadim Zeitlin [Sun, 6 Dec 2009 02:29:42 +0000 (02:29 +0000)] 
Fix wxFD_CLR() definition for Intel compiler under Linux.

wxFD_CLR() should be void, not bool.

Closes #11517.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agominor cleanup
Paul Cornett [Sat, 5 Dec 2009 19:57:58 +0000 (19:57 +0000)] 
minor cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoremove unused variables, minor cleanup
Paul Cornett [Sat, 5 Dec 2009 19:45:42 +0000 (19:45 +0000)] 
remove unused variables, minor cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoremove -I on nonexistent directory
Paul Cornett [Sat, 5 Dec 2009 19:29:06 +0000 (19:29 +0000)] 
remove -I on nonexistent directory

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoremove unnecessary DoGetBestSize
Paul Cornett [Sat, 5 Dec 2009 19:26:39 +0000 (19:26 +0000)] 
remove unnecessary DoGetBestSize

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosimplify Enable()
Paul Cornett [Sat, 5 Dec 2009 19:25:04 +0000 (19:25 +0000)] 
simplify Enable()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded samples/dll for showing how to use wxWidgets to implement
Václav Slavík [Sat, 5 Dec 2009 18:54:40 +0000 (18:54 +0000)] 
Added samples/dll for showing how to use wxWidgets to implement
a DLL that is used from another application written with a different
toolkit (or different wx version).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775