]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoAdd wxGrid::RefreshAttr() method to force attribute refresh.
Vadim Zeitlin [Mon, 30 Aug 2010 22:18:52 +0000 (22:18 +0000)] 
Add wxGrid::RefreshAttr() method to force attribute refresh.

A cached attribute may continue to be used even though the attribute returned
by a custom wxGridCellAttrProvider has changed so add a method to force wxGrid
to update the attribute by forgetting the cached copy.

Closes #12406.

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

13 years agoDon't center wxGenericMessageDialog elements.
Vadim Zeitlin [Mon, 30 Aug 2010 21:48:25 +0000 (21:48 +0000)] 
Don't center wxGenericMessageDialog elements.

Centering doesn't seem to be appropriate on neither of the major platforms and
makes wxGenericMessageDialog and wxGenericRichMessageDialog which uses it look
even less native than otherwise.

Simply don't do it neither for the text nor, especially, for the buttons where
wxStdDialogButtonSizer already exists to take care of their alignment.

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

13 years agoAllow using custom labels for wxGenericMessageDialog buttons.
Vadim Zeitlin [Mon, 30 Aug 2010 21:48:21 +0000 (21:48 +0000)] 
Allow using custom labels for wxGenericMessageDialog buttons.

Custom labels set for wxGenericMessageDialog buttons were simply ignored as it
used CreateSeparatedButtonSizer() to create the actual buttons which in turn
always used the standard labels.

Fix this by explicitly creating the buttons with custom labels if necessary.

This also fixes custom label support in wxGenericRichMessageDialog deriving
from this class.

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

13 years agoExtract CreateSeparatedSizer() from wxDialog::CreateSeparatedButtonSizer().
Vadim Zeitlin [Mon, 30 Aug 2010 21:48:16 +0000 (21:48 +0000)] 
Extract CreateSeparatedSizer() from wxDialog::CreateSeparatedButtonSizer().

Extract the code adding a separating wxStaticLine to the sizer in its own
function to be able to reuse it in upcoming commits.

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

13 years agoFix button order in wxStdDialogButtonSizer in all cases under GTK.
Vadim Zeitlin [Mon, 30 Aug 2010 21:48:11 +0000 (21:48 +0000)] 
Fix button order in wxStdDialogButtonSizer in all cases under GTK.

The order of Yes/No/Cancel was recently fixed by the changes in r65346 but it
broke the order of the buttons in Ok/Cancel case. Ensure the correct order is
used in all cases now: the one described by GNOME HIG by default but different
order for the special case of Yes/No/Cancel which follows the native message
box.

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

13 years agoRewrite GTK section of wxStdDialogButtonSizer using wxSizerFlags.
Vadim Zeitlin [Mon, 30 Aug 2010 21:48:06 +0000 (21:48 +0000)] 
Rewrite GTK section of wxStdDialogButtonSizer using wxSizerFlags.

Using wxSizerFlags makes the code shorter and more understandable but
otherwise there are no real changes in behaviour except for a minor fix to one
of the border which was wrong before.

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

14 years agoFixed wrong line spacing calculation
Julian Smart [Mon, 30 Aug 2010 11:27:42 +0000 (11:27 +0000)] 
Fixed wrong line spacing calculation

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

14 years agoDon't add space before para twice in paragraph layout
Julian Smart [Mon, 30 Aug 2010 08:47:23 +0000 (08:47 +0000)] 
Don't add space before para twice in paragraph layout
Discard attributes from empty text object when merging

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

14 years agoinclude wx/sizer.h as buildbot complained
Robert Roebling [Sun, 29 Aug 2010 12:24:44 +0000 (12:24 +0000)] 
include wx/sizer.h as buildbot complained

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

14 years agoAdd possibility to use sizers in ribbon panel, fixes #12404: wxRibbonPanel and wxSizer
Robert Roebling [Sun, 29 Aug 2010 09:42:55 +0000 (09:42 +0000)] 
Add possibility to use sizers in ribbon panel, fixes #12404: wxRibbonPanel and wxSizer

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

14 years agoScale sizes more accurately in generic SetWindowVariant().
Václav Slavík [Sat, 28 Aug 2010 17:05:02 +0000 (17:05 +0000)] 
Scale sizes more accurately in generic SetWindowVariant().

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

14 years agoChanged wxArrayStringProperty default delimiter to comma. It should allow for better...
Jaakko Salli [Thu, 26 Aug 2010 13:51:45 +0000 (13:51 +0000)] 
Changed wxArrayStringProperty default delimiter to comma. It should allow for better looking and more easily editable property values for common cases.

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

14 years agoAdded missing wx/defs.h includes in propgrid headers
Jaakko Salli [Thu, 26 Aug 2010 13:25:07 +0000 (13:25 +0000)] 
Added missing wx/defs.h includes in propgrid headers

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

14 years agocorrecting wxX11 for wxkeysym as was done for wxMOTIF
Jouk Jansen [Thu, 26 Aug 2010 06:53:51 +0000 (06:53 +0000)] 
correcting wxX11 for wxkeysym as was done for wxMOTIF

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

14 years agoFix wxListBox selection handling broken by r64500.
Václav Slavík [Wed, 25 Aug 2010 15:02:30 +0000 (15:02 +0000)] 
Fix wxListBox selection handling broken by r64500.

r64500 introduced tracking of previous selection in wxMSW's wxListBox so
that an event isn't sent when the user clicks already selected item
again. Unfortunately, it forgot to account for programatic changes of
selection (e.g. when all items are removed, so is the selection) and
didn't update selection book-keeping information in that case. The
result was that the event wasn't sent when it should be in some cases.

Fixed by using UpdateOldSelections() even in single-selection case in
wxMSW.

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

14 years agoReenable sorting tests for GTK
Robert Roebling [Tue, 24 Aug 2010 17:22:12 +0000 (17:22 +0000)] 
Reenable sorting tests for GTK

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

14 years agoMake sorting of wxListBox, wxChoice and wxComboBox identical to the MSW sorting
Robert Roebling [Tue, 24 Aug 2010 17:06:15 +0000 (17:06 +0000)] 
Make sorting of wxListBox, wxChoice and wxComboBox identical to the MSW sorting

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

14 years agoRemove unused wxDisplay implementation using DirectDraw from wxMSW.
Vadim Zeitlin [Tue, 24 Aug 2010 11:36:43 +0000 (11:36 +0000)] 
Remove unused wxDisplay implementation using DirectDraw from wxMSW.

Remove commented out version of DirectDraw-based wxDisplayFactory
implementation. It doesn't seem to have any advantages compared to the
currently used version and nobody uses it anyhow.

Closes #12387.

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

14 years agowxKeysym problem for wxMOTIF fixed
Jouk Jansen [Tue, 24 Aug 2010 11:23:22 +0000 (11:23 +0000)] 
wxKeysym problem for wxMOTIF fixed

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

14 years agoCompilation fix: forward declare wxTextEntry in unit tests code.
Vadim Zeitlin [Mon, 23 Aug 2010 18:54:59 +0000 (18:54 +0000)] 
Compilation fix: forward declare wxTextEntry in unit tests code.

This should fix tests compilation on the build bot Mac OS X slaves.

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

14 years agoUpdate openVMS compile support
Jouk Jansen [Mon, 23 Aug 2010 07:50:00 +0000 (07:50 +0000)] 
Update openVMS compile support

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

14 years agoUse "C" locale for locale-dependent part of TextCtrlTestCase.
Vadim Zeitlin [Sun, 22 Aug 2010 23:46:02 +0000 (23:46 +0000)] 
Use "C" locale for locale-dependent part of TextCtrlTestCase.

As we expect to get decimal points in the text control when we stream floating
point numbers into it, we must do it in a locale which uses decimal point,
e.g. "C" one. Otherwise the test failed when ran in e.g. French locale.

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

14 years agoDocument that wxFD_FILE_MUST_EXIST is implied under OS X.
Vadim Zeitlin [Sun, 22 Aug 2010 23:45:58 +0000 (23:45 +0000)] 
Document that wxFD_FILE_MUST_EXIST is implied under OS X.

Mention in the documentation that the standard file open dialog under OS X
can't be used to select a non-existing file.

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

14 years agoRemove unused src/osx/cocoa/bmpbuttn.mm file.
Vadim Zeitlin [Sun, 22 Aug 2010 23:45:53 +0000 (23:45 +0000)] 
Remove unused src/osx/cocoa/bmpbuttn.mm file.

This file was empty and unused any more so simply remove it and all references
to it in the makefiles.

This avoids warnings about empty object files in static builds of the library.

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

14 years agoDon't use uninitialized variable in wxCharCodeWXToOSX().
Vadim Zeitlin [Sun, 22 Aug 2010 22:58:25 +0000 (22:58 +0000)] 
Don't use uninitialized variable in wxCharCodeWXToOSX().

If an unsupported wxKeyCode was passed to this function, an undefined value
was returned. Return -1 instead to indicate failure.

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

14 years agoMerge the new GUI tests from SOC2010_GUI_TEST branch.
Vadim Zeitlin [Sun, 22 Aug 2010 22:16:05 +0000 (22:16 +0000)] 
Merge the new GUI tests from SOC2010_GUI_TEST branch.

Add a lot of tests for many wx GUI classes.

Add tests using the new wxUIActionSimulator class but disable them under OS X
as too many of them currently fail there.

Refactor the test suite to make organizing the existing tests and adding the
new ones easier.

Improve documentation using the information gathered while testing the
classes. Also update the documentation of the testing system itself.

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

14 years agoMerge wxUIActionSimulator fixes from SOC2010_GUI_TEST branch.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:42 +0000 (22:15 +0000)] 
Merge wxUIActionSimulator fixes from SOC2010_GUI_TEST branch.

Correct a lot of problems with the initial implementation, notably make the
API consistent across all platforms, e.g. all keyboard-related methods now
take just a wxKeyCode.

Add some useful higher-level helpers such as Text() and MouseDragDrop().

Improve documentation.

wxUIActionSimulator now works under MSW, GTK and OS X and is enabled by
default.

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

14 years agoFix selection corner cases in wxOSX wxComboBox.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:32 +0000 (22:15 +0000)] 
Fix selection corner cases in wxOSX wxComboBox.

Don't crash in wxComboBox::GetString() if it's passed an invalid index.

Don't call GetString() with invalid index from GetStringSelection() if there
is no selection.

Do accept wxNOT_FOUND in SetSelectedItem() as it means, according to the docs,
that the existing selection should be reset.

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

14 years agoDon't crash in wxOSX::wxClipboard::Clear() if initialization failed.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:27 +0000 (22:15 +0000)] 
Don't crash in wxOSX::wxClipboard::Clear() if initialization failed.

Creating the clipboard may fail (e.g. when running from a ssh session to an OS
X machine), don't crash by passing NULL pointer to PasteboardClear() if this
happens but assert and return instead.

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

14 years agoWork around a crash on starting editing in wxGrid under wxOSX/Cocoa.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:22 +0000 (22:15 +0000)] 
Work around a crash on starting editing in wxGrid under wxOSX/Cocoa.

wxOSX/Cocoa currently generates unexpected focus loss events with the window
gaining focus being the same one as losing it. This is wrong and shouldn't
happen but as long as it does, filter these events out to at least allow
editing the grid to work.

See #12267.

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

14 years agoDon't send event from wxMSW::wxListCtrl::DeleteAllItems() if it did nothing.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:17 +0000 (22:15 +0000)] 
Don't send event from wxMSW::wxListCtrl::DeleteAllItems() if it did nothing.

wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS should only be sent if the control hadn't
been empty before. Document this behaviour and adjust wxMSW to match the
other platforms.

Also document the return value better.

Closes #12336.

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

14 years agoExtract X11 Display wrapper class in a private header.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:13 +0000 (22:15 +0000)] 
Extract X11 Display wrapper class in a private header.

No real changes, just extract a private Dpy class used by wxGTK to a header
and rename it to wxX11Display.

This will allow reusing it from X11 wxUIActionSimulator implementation in the
upcoming commits.

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

14 years agoAdd missing header required if wx/mousestate.h is included first.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:07 +0000 (22:15 +0000)] 
Add missing header required if wx/mousestate.h is included first.

This header uses wxPoint so it must include wx/gdicmn.h (instead of relying on
it having been already included).

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

14 years agoDon't report spurious errors from wxSocket in "no wait" mode.
Vadim Zeitlin [Sat, 21 Aug 2010 23:33:40 +0000 (23:33 +0000)] 
Don't report spurious errors from wxSocket in "no wait" mode.

In wxSOCKET_NOWAIT mode wxSOCKET_WOULDBLOCK is not a real error as it's
expected and should be just discarded. Failing to do this could result in the
following scenario:

1. Try to read a big buffer with wxSOCKET_NOWAIT (setting wxSocket error to
   wxSOCKET_WOULDBLOCK).
2. Process small part of it.
3. Read more data from wxSocket -- which now goes to the data containing
   already cached data without going to the socket itself and this without
   resetting the error.
4. Check wxSocket::Error() which turns out to be (still) true.

And this was exactly what happened in mysteriously failing unit test case
reading wxImage contents from a socket: the failure was difficult to reproduce
because it depended on how much data exactly did we read from the socket in
one go.

Fix this by resetting the error properly and reenable the unit test which was
previously disabled for the build bot, it should pass now.

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

14 years agoAllow calling wxGenericDirCtrl::GetPath() in multiple selection mode, fixes #12340...
Robert Roebling [Sat, 21 Aug 2010 10:17:13 +0000 (10:17 +0000)] 
Allow calling wxGenericDirCtrl::GetPath() in multiple selection mode, fixes  #12340 ([wxGenericDirCtrl] conflicts wxDirFilterListCtrl::OnSelFilter())

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

14 years agomake Set/GetLabel() set and return something (albeit unused) as per the docs, fixes...
Robert Roebling [Sat, 21 Aug 2010 09:54:30 +0000 (09:54 +0000)] 
make Set/GetLabel() set and return something (albeit unused) as per the docs, fixes #12350: wxWindow Get/SetLabel non-functional in GTK

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

14 years agomake Set/GetLabel() set and return title in wxTLW, fixes #12371: Dialog::GetLabel...
Robert Roebling [Sat, 21 Aug 2010 09:53:25 +0000 (09:53 +0000)] 
make Set/GetLabel() set and return title in wxTLW, fixes #12371: Dialog::GetLabel() Inconsistent behaviour across operating systems

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

14 years agoFix crash by checking if icon is valid before drawing it, fixes #12376: PATCH for...
Robert Roebling [Sat, 21 Aug 2010 09:39:09 +0000 (09:39 +0000)] 
Fix crash by checking if icon is valid before drawing it, fixes #12376: PATCH for Ribbon crash

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

14 years agoFix potential crash, fixes #12375: PATCH to fix help controller crash
Robert Roebling [Sat, 21 Aug 2010 09:36:12 +0000 (09:36 +0000)] 
Fix potential crash, fixes #12375: PATCH to fix help controller crash

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

14 years agoProperly implement Cleared() by calling row_deleted on every child of root, fixes...
Robert Roebling [Fri, 20 Aug 2010 20:51:17 +0000 (20:51 +0000)] 
Properly implement Cleared() by calling row_deleted on every child of root, fixes #12327: wxDataViewListCtrl Crash

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

14 years agoMention that not all standard IDs are stock IDs.
Vadim Zeitlin [Fri, 20 Aug 2010 18:13:51 +0000 (18:13 +0000)] 
Mention that not all standard IDs are stock IDs.

Also add a link to the list of stock IDs from the standard IDs documentation.

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

14 years agoinclude correct private.h for wxgtk1
Jouk Jansen [Fri, 20 Aug 2010 15:38:03 +0000 (15:38 +0000)] 
include correct private.h for wxgtk1

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

14 years agoMake it compile
Robert Roebling [Fri, 20 Aug 2010 15:22:52 +0000 (15:22 +0000)] 
Make it compile

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

14 years agoLink to wxRichMessageDialog in some places
Robert Roebling [Thu, 19 Aug 2010 18:29:46 +0000 (18:29 +0000)] 
Link to wxRichMessageDialog in some places

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

14 years agoMake it compile a bit more
Robert Roebling [Thu, 19 Aug 2010 18:17:51 +0000 (18:17 +0000)] 
Make it compile a bit more

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

14 years agoSlightly improve wx[Generic]RichMessageDialog layout.
Vadim Zeitlin [Thu, 19 Aug 2010 15:41:24 +0000 (15:41 +0000)] 
Slightly improve wx[Generic]RichMessageDialog layout.

Keep the icon at the top instead of centering it, this is more consistent with
the native behaviour under both MSW and GTK.

Get rid of an unnecessary sizer in wxGenericRichMessageDialog and give the
checkbox the right border to align with the rest of the dialog contents.

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

14 years agoMake the main message of wxGenericMessageDialog stand out.
Vadim Zeitlin [Thu, 19 Aug 2010 15:41:18 +0000 (15:41 +0000)] 
Make the main message of wxGenericMessageDialog stand out.

Use larger bold font for the main message in wxGenericMessageDialog if the
extended message is also given to make it stand out similarly to how it
happens in the native GTK and MSW dialogs.

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

14 years agoBetter close button placement on tabs, especially for bottom tab alignment
Julian Smart [Thu, 19 Aug 2010 12:12:59 +0000 (12:12 +0000)] 
Better close button placement on tabs, especially for bottom tab alignment

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

14 years agoupdate compile configuration for OpenVMS
Jouk Jansen [Thu, 19 Aug 2010 07:13:01 +0000 (07:13 +0000)] 
update compile configuration for OpenVMS

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

14 years agoCompilation fix for STL build in wxGtkCollatableString code.
Vadim Zeitlin [Thu, 19 Aug 2010 00:06:17 +0000 (00:06 +0000)] 
Compilation fix for STL build in wxGtkCollatableString code.

Include wx/string.h to define wxString used by this class.

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

14 years agoCompilation fix for non-PCH build in wxGenericRichMessageDialog code.
Vadim Zeitlin [Thu, 19 Aug 2010 00:06:12 +0000 (00:06 +0000)] 
Compilation fix for non-PCH build in wxGenericRichMessageDialog code.

Move IsCheckBoxChecked() to the .cpp file where wxCheckBox is fully defined
and not just forward declared (at least when not using PCH).

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

14 years agoCompilation fix for old SDKs in new native MSW wxHyperLinkCtrl code.
Vadim Zeitlin [Wed, 18 Aug 2010 23:57:26 +0000 (23:57 +0000)] 
Compilation fix for old SDKs in new native MSW wxHyperLinkCtrl code.

Define WC_LINK ourselves if it's not defined in the headers.

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

14 years agoVC6 compilation fix for native wxProgressDialog implementation.
Vadim Zeitlin [Wed, 18 Aug 2010 23:55:52 +0000 (23:55 +0000)] 
VC6 compilation fix for native wxProgressDialog implementation.

Don't use return with a void value, VC6 doesn't support this and it's
unnecessary here anyhow.

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

14 years agoUse task dialog for wxProgressDialog implementation in wxMSW.
Vadim Zeitlin [Wed, 18 Aug 2010 22:49:02 +0000 (22:49 +0000)] 
Use task dialog for wxProgressDialog implementation in wxMSW.

If available, the task dialog is now used for the wxProgressDialog under
Windows. This provides a much more native looking dialog which doesn't look
out of place under modern Windows versions, unlike the generic implementation.

The internals of the code had to be significantly changed as the task dialog
can only be shown modally so, to emulate wxProgressDialog modeless nature, a
separate thread is used for the progress dialog management.

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

14 years agoOnly use native wxHyperlinkCtrl in Unicode build under MSW.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:53 +0000 (22:48 +0000)] 
Only use native wxHyperlinkCtrl in Unicode build under MSW.

The native control is available to Unicode applications only so disable its
use in non-Unicode build.

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

14 years agoDon't use native MSW wxCommandLinkButton in wxUniversal.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:48 +0000 (22:48 +0000)] 
Don't use native MSW wxCommandLinkButton in wxUniversal.

Test for __WXUNIVERSAL__ when selecting the version of this class to use.

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

14 years agoAdd wxRichMessageDialog class.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:41 +0000 (22:48 +0000)] 
Add wxRichMessageDialog class.

This is a generalization of wxMessageDialog based on the native task dialog
under recent (Vista and later) Windows versions and implemented generically
for the other ports for now.

It provides the possibility to use additional controls in the message boxes
(checkbox useful for the "Don't ask me again" kind of dialogs and collapsible
detailed explanations field) and better look and feel under Windows.

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

14 years agoProvide a task-dialog based wxMSW wxMessageDialog implementation.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:28 +0000 (22:48 +0000)] 
Provide a task-dialog based wxMSW wxMessageDialog implementation.

Use the task dialog instead of the legacy message box for wxMessageDialog
implementation under wxMSW on recent (Vista and later) Windows versions.

As part of this change, remove wxMessageDialogWithCustomLabels and integrate
its functionality in wxMessageDialogBase itself as it's now used by all
platforms.

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

14 years agoHandle mnemonics correctly in wxGTK::wxCollapsiblePaneSetLabel().
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:21 +0000 (22:48 +0000)] 
Handle mnemonics correctly in wxGTK::wxCollapsiblePaneSetLabel().

Convert mnemonics in wx format to the one used by GTK+, just as we already do
in the ctor.

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

14 years agoFix Yes/No/Cancel buttons order in wxGTK wxStdDialogButtonSizer.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:15 +0000 (22:48 +0000)] 
Fix Yes/No/Cancel buttons order in wxGTK wxStdDialogButtonSizer.

"Yes" and "No" buttons should be positioned next to each other for consistency
with the native message box instead of separating them with the "Cancel"
button.

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

14 years agoDocument recetnyl added name parameter in wxDataViewCtrl
Robert Roebling [Wed, 18 Aug 2010 21:40:24 +0000 (21:40 +0000)] 
Document recetnyl added name parameter in wxDataViewCtrl

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

14 years agoMention that you cannot call wxRadioButton::SetValue(false) if that radiobutton belon...
Robert Roebling [Wed, 18 Aug 2010 21:36:40 +0000 (21:36 +0000)] 
Mention that you cannot call wxRadioButton::SetValue(false) if that radiobutton belongs to a group

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

14 years agoGTK+ just won't let you uncheck any radiobutton that belongs to a group.
Robert Roebling [Wed, 18 Aug 2010 21:32:14 +0000 (21:32 +0000)] 
GTK+ just won't let you uncheck any radiobutton that belongs to a group.

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

14 years agomake wxChoice and wxComboBox sort in a case insensitive and locale adapted way, fixes...
Robert Roebling [Wed, 18 Aug 2010 21:29:53 +0000 (21:29 +0000)] 
make wxChoice and wxComboBox sort in a case insensitive and locale adapted way, fixes #12351: Incorrect sort order in wxChoice / wxComboBox

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

14 years agoMake wxListBox sort in a case insensitive way, fixes #12352: Incorrect sort order...
Robert Roebling [Wed, 18 Aug 2010 21:28:11 +0000 (21:28 +0000)] 
Make wxListBox sort in a case insensitive way, fixes #12352: Incorrect sort order in wxListBox

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

14 years agoUse common inline version of wxHexToDec
Julian Smart [Wed, 18 Aug 2010 12:59:52 +0000 (12:59 +0000)] 
Use common inline version of wxHexToDec

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

14 years agoProvide native wxHyperlinkCtrl implementation for wxMSW.
Vadim Zeitlin [Tue, 17 Aug 2010 16:55:32 +0000 (16:55 +0000)] 
Provide native wxHyperlinkCtrl implementation for wxMSW.

Use the "syslink" native control to implement wxHyperlinkCtrl under (recent
enough, i.e. XP or later) versions of Windows.

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

14 years agoCompilation fix: include wx/button.h from wx/commandlinkbutton.h.
Vadim Zeitlin [Tue, 17 Aug 2010 16:12:28 +0000 (16:12 +0000)] 
Compilation fix: include wx/button.h from wx/commandlinkbutton.h.

Include the base class declaration to fix compilation under non-MSW.

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

14 years agoExport wxMSWButton::GetFittingSize() private function.
Vadim Zeitlin [Tue, 17 Aug 2010 15:13:14 +0000 (15:13 +0000)] 
Export wxMSWButton::GetFittingSize() private function.

It is now used by wxCommandLinkButton from adv library and so needs to be
exported from core.

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

14 years agoAdd new wxCommandLinkButton class.
Vadim Zeitlin [Tue, 17 Aug 2010 14:48:50 +0000 (14:48 +0000)] 
Add new wxCommandLinkButton class.

A command link button wraps a native MSW control under recent Windows versions
and is implemented generically as a simple bitmap button elsewhere.

In the future, GTK implementation should allow using a different font for the
button label and its note.

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

14 years agoLarge image-loading speedup and small attribute-loading speedup
Julian Smart [Tue, 17 Aug 2010 10:10:39 +0000 (10:10 +0000)] 
Large image-loading speedup and small attribute-loading speedup

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

14 years agofixes horizontal scrolling in textfields, fixes #12322
Stefan Csomor [Tue, 17 Aug 2010 06:21:53 +0000 (06:21 +0000)] 
fixes horizontal scrolling in textfields, fixes #12322

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

14 years agoIgnore non-existant string selection in wxComboBox::SetValue() in read-only mode...
Robert Roebling [Mon, 16 Aug 2010 17:48:28 +0000 (17:48 +0000)] 
Ignore non-existant string selection in wxComboBox::SetValue() in read-only mode, as per the very exact docs, fixes #12329: wxComboBox can set non-existing string in read only mode

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

14 years agoUncheck radiobutton when calling ::SetValue(false) as per wxMSW, fixes #12344: Cannot...
Robert Roebling [Mon, 16 Aug 2010 15:33:31 +0000 (15:33 +0000)] 
Uncheck radiobutton when calling ::SetValue(false) as per wxMSW, fixes #12344: Cannot set GTK wxRadioButton to fasle

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

14 years agoImprove EVT_SHOW documentation.
Vadim Zeitlin [Sun, 15 Aug 2010 21:14:11 +0000 (21:14 +0000)] 
Improve EVT_SHOW documentation.

Mention that it applies to the TLWs only and explain when it is generated (and
not generated).

Closes #12353.

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

14 years agoFix wxMSW compilation in wxUSE_STL==1 case.
Vadim Zeitlin [Sun, 15 Aug 2010 21:14:06 +0000 (21:14 +0000)] 
Fix wxMSW compilation in wxUSE_STL==1 case.

A wxDECLARE_NO_ASSIGN_CLASS() was recently added to ClassRegInfo but storing
it in a vector requires it to be "Assignable" so this broke compilation in STL
case (wxVector<> doesn't enforce this requirement currently).

Make ClassRegInfo assignable again to fix this.

Closes #12355.

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

14 years agoRevert "Make wxComboBox::Popup() and ::Dismiss() emit events"
Vadim Zeitlin [Sun, 15 Aug 2010 21:14:02 +0000 (21:14 +0000)] 
Revert "Make wxComboBox::Popup() and ::Dismiss() emit events"

This reverts commit r65310 which was not, in fact, necessary as the events
were already sent.

See #12335.

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

14 years agoMake wxComboBox::Popup() and ::Dismiss() emit events as per the docs, fixes (wxComboB...
Robert Roebling [Sun, 15 Aug 2010 16:16:22 +0000 (16:16 +0000)] 
Make wxComboBox::Popup() and ::Dismiss() emit events as per the docs, fixes (wxComboBox not sending popup and dismiss events)

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

14 years agoAllow wxVariant::Convert(wxUniChar* value) to convert single-character string into...
Jaakko Salli [Fri, 13 Aug 2010 20:12:03 +0000 (20:12 +0000)] 
Allow wxVariant::Convert(wxUniChar* value) to convert single-character string into a character.

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

14 years agoFix harmless MSVC warning about double to float conversion.
Vadim Zeitlin [Fri, 13 Aug 2010 11:57:45 +0000 (11:57 +0000)] 
Fix harmless MSVC warning about double to float conversion.

Make the constant double as well as it's compared with other doubles in the
code below.

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

14 years agoUpdate wxWinCE compilation instructions.
Vadim Zeitlin [Fri, 13 Aug 2010 09:55:32 +0000 (09:55 +0000)] 
Update wxWinCE compilation instructions.

Remove obsolete information about eVC. Give the example of using bakefile to
generate VC[89] CE projects directly.

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

14 years agono-op change to get build bot running
Stefan Csomor [Fri, 13 Aug 2010 04:23:37 +0000 (04:23 +0000)] 
no-op change to get build bot running

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

14 years agono-op change to get build bot running
Stefan Csomor [Thu, 12 Aug 2010 08:25:16 +0000 (08:25 +0000)] 
no-op change to get build bot running

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

14 years agoNew build slave for wxQt
Javier Torres [Wed, 11 Aug 2010 23:11:24 +0000 (23:11 +0000)] 
New build slave for wxQt

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

14 years agoImprove wxRibbonMSWArtProvider's colour scheme generation when the primary and/or...
Peter Cawley [Wed, 11 Aug 2010 16:51:02 +0000 (16:51 +0000)] 
Improve wxRibbonMSWArtProvider's colour scheme generation when the primary and/or secondary colours are grey (see ticket #12331).

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

14 years agoHandle wxDefaultSize correctly in wxNonOwnedWindow under wxOSX.
Vadim Zeitlin [Wed, 11 Aug 2010 16:04:00 +0000 (16:04 +0000)] 
Handle wxDefaultSize correctly in wxNonOwnedWindow under wxOSX.

Creating a wxNonOwnedWindow with default size created tiny, practically
invisible windows because the default size was only taken care of at
wxTopLevelWindow level but not in wxNonOwnedWindow itself. In particular, this
broke creation of wxMDIChildFrames with the default size as this class only
derived from wxNonOwnedWindow and not from wxTopLevelWindow under OS X. It
also probably wasn't intentional as the code did use {Width,Height}Default()
functions but they were wxWindow methods and not the wxTopLevelWindow
(confusingly and error-pronely) named the same.

Fix this, remove the now redundant checks for the default size in
wxTopLevelWindow itself and also rationalize and condense the checks for the
default position and size components in wxNonOwnedWindow::Create().

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

14 years agoMake wxTopLevelWindow::GetDefaultSize() public and document it.
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:55 +0000 (16:03 +0000)] 
Make wxTopLevelWindow::GetDefaultSize() public and document it.

This method is/will be needed by wxNonOwnedWindow in wxOSX but couldn't be
used as long as it was protected, so make it public. And as it seems that it
might be useful outside of wx itself, document it as well.

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

14 years agoAdd wxPoint::IsFullySpecified() and SetDefaults().
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:51 +0000 (16:03 +0000)] 
Add wxPoint::IsFullySpecified() and SetDefaults().

These methods do the same thing as wxSize methods with the same names and are
useful for the same reasons.

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

14 years agoFix handling of help buttons with non-empty label under OS X.
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:46 +0000 (16:03 +0000)] 
Fix handling of help buttons with non-empty label under OS X.

Creating a button with wxID_HELP and a non-empty label used to always show
this label, even if it was just a standard "Help" or "&Help". This didn't work
at all as the help buttons under OS X are too small to show any label.

To fix this, use normal buttons, not help ones, if a really custom label is
used to ensure that it can be seen. And to still use the correct help buttons
in as many cases as possible, ignore the standard "Help" label and its
variants and don't show it at all.

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

14 years agoUse correct format specifiers in wxString::Printf().
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:04 +0000 (16:03 +0000)] 
Use correct format specifiers in wxString::Printf().

Using %d with size_t argument resulted in asserts, fix it.

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

14 years agoFix line indices translation in wxGrid::DoEndDragResizeLine().
Vadim Zeitlin [Tue, 10 Aug 2010 22:39:04 +0000 (22:39 +0000)] 
Fix line indices translation in wxGrid::DoEndDragResizeLine().

We used the translation in wrong direction, i.e. interpreted x coordinates as
rows and y coordinates as columns. This could result in passing invalid cell
indices to GetCellSize() and was generally completely wrong.

Closes #12311.

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

14 years agoWIP
Vadim Zeitlin [Tue, 10 Aug 2010 22:39:00 +0000 (22:39 +0000)] 
WIP

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

14 years agoDon't set Unicode key code in key events to non-Unicode values in wxGTK.
Vadim Zeitlin [Tue, 10 Aug 2010 22:38:54 +0000 (22:38 +0000)] 
Don't set Unicode key code in key events to non-Unicode values in wxGTK.

Only assign the wx key code wxKeyEvent::m_uniChar if it's a key corresponding
to an ASCII symbol, don't do it for the values outside of ASCII range such as
all the special WXK_ constants. It doesn't make sense to generate Unicode key
codes for e.g. cursor key presses.

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

14 years agoUse wxPanel as controls parent in wrapsizer sample.
Vadim Zeitlin [Tue, 10 Aug 2010 21:48:22 +0000 (21:48 +0000)] 
Use wxPanel as controls parent in wrapsizer sample.

Follow our own advice about never creating controls directly on the frame and
using an intermediate wxPanel in our own sample. This is better style and
makes it look better under Windows.

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

14 years agoInherit notebook background recursively under wxMSW.
Vadim Zeitlin [Tue, 10 Aug 2010 21:48:17 +0000 (21:48 +0000)] 
Inherit notebook background recursively under wxMSW.

With MSWSetTransparentBackground() hack only the panel which was the immediate
child of wxNotebook (i.e. its page) inherited the notebook background but not
its children. This resulted in jarring background discontinuities when nested
panels were used.

Fix this by inheriting notebook background in all child panels by testing for
the return value of the parents MSWHasInheritableBackground() method in
wxPanel::HasTransparentBackground() recursively.

Closes #12317.

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

14 years agoFix wxBitmapButton initial best size determination in wxMSW.
Vadim Zeitlin [Tue, 10 Aug 2010 18:58:06 +0000 (18:58 +0000)] 
Fix wxBitmapButton initial best size determination in wxMSW.

This was broken during wxButton/wxBitmapButton merge and wxBitmapButton was
not created with the correct initial size if the default size was specified
when creating it any longer. Fix this by calling SetInitialSize() once again
after setting the bitmap.

See #12323.

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

14 years agoKeep the button bitmap centered if the button has no label in wxMSW.
Vadim Zeitlin [Tue, 10 Aug 2010 18:58:02 +0000 (18:58 +0000)] 
Keep the button bitmap centered if the button has no label in wxMSW.

We should only honour the bitmap alignment if the button shows both the bitmap
and the label. If only the bitmap is shown (e.g. when wxBitmapButton is used),
it should always be centered as it used to be done in 2.8.

Closes #12323.

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

14 years agoRemove obsolete and out of date Xcode project file.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:56 +0000 (18:57 +0000)] 
Remove obsolete and out of date Xcode project file.

The project files under build/osx should now be used, this Xcode project file
was out of date and couldn't be updated automatically.

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

14 years agoRevert MSW window classes uniquification patch.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:51 +0000 (18:57 +0000)] 
Revert MSW window classes uniquification patch.

Making the class names unique doesn't seem to be necessary so revert the patch
which appended unique pointer value to their names (r57030).

See #9031.

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

14 years agoDon't use bitmap still selected in wxMemoryDC in image sample.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:47 +0000 (18:57 +0000)] 
Don't use bitmap still selected in wxMemoryDC in image sample.

The bitmap must be deselected from wxMemoryDC before being used in any other
way but the sample didn't do this. Fix this by simply destroying the DC as
soon as we don't need it, this makes bitmap available for other use as well.

Closes #12310.

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