Create new "Unmaintained Old Samples" category for it and rename the
existing "Various" category to "Uncategorized" in order to make it
appear before the "Unmaintained" one.
This one half-adds them to the solution file too: note that you still
need to sort the new sample under the correct folder interactively and
apply the same changes as to samples/samples_vc17.sln to all the other
solution file which can be done by e.g. the following shell one-liner:
for v in 14 15 16; do
git diff -- samples/samples_vc17.sln | sed "s/samples_vc17.sln/samples_vc${v}.sln/g" | git apply -v
done
Make this sample consistent with the "widgets" one, which already used
"wxWidgets_Samples" as vendor name (which is used as registry key name
under MSW).
MSVS seems to always order the folders alphabetically, so try to name
name in such a way that more important folders appear at the top and
less important ones at the bottom.
Even if all libraries are not used here yet, they will be by at least
some samples when they are added.
Also start organizing things by putting projects under folders to avoid
having too many of them at the top level.
This version includes UUID::Tiny dependency and so doesn't need anything
except core Perl itself and so should run just about anywhere.
This was produced by "fatpack pack vcxproj-clone.pl > vcxproj-clone".
Put under version control an ancient script (created back in ~2012?)
that can be used to create a copy an existing MSVS project file using a
new name and a different UUID.
This is very far from being a replacement for a proper (meta) build
system such as bakefile but still better than nothing at all.
Fix multiple problems with GTK mouse events:
- Avoid phantom release events after dismissing modal dialog (#24931).
- Do send enter/leave events for window-less controls in wxGTK (#24932).
- Fix coordinates in click events sent to window with capture (#24933).
Returning negative size, due to subtracting tool/status bar size from
it, was unexpected, so return empty, i.e. (0,0), size when the window is
iconized instead, as documented.
Because we don't have the correct client size when the window is
minimized (at least in wxMSW), postpone the actual update until the
window is restored, as we don't really need to do it until then anyhow.
Closes#24930.
The call to wxGetTranslation() was ambiguous. Fix this by adding missing
wxASCII_STR() for all string literal arguments in wxGETTEXT_IN_CONTEXT
and wxGETTEXT_IN_CONTEXT_PLURAL, just as it is used in _().
Also test that all translation macros expand to compilable code
when wxNO_IMPLICIT_WXSTRING_ENCODING is enabled.
See #1312 and also #24916.
Closes#24925.
First of all, ensure that the press and release events do go to the
window with the capture, which may not have been the case at all when
the capturing window didn't have a corresponding GDK window, e.g. when
capturing mouse in wxStaticText-derived class.
And also adjust the coordinates to be correct for the captured window to
ensure that the window receives the expected events.