Maarten Bent
29c30d5917
Improve HitTest in generic wxListCtrl
...
Detect when a checkbox is hit and return wxLIST_HITTEST_ONITEMSTATEICON.
Determine the correct location of the icon, it might be preceded by a
checkbox.
Return only the icon rectangle in GetSubItemRect with wxLIST_RECT_ICON,
not the padding or margins above/below the icon.
Closes #25764 .
2025-09-06 21:20:30 +02:00
Vadim Zeitlin
18711b55ba
Merge branch 'generic-calendar' of github.com:MaartenBent/wxWidgets
...
Make wxGenericCalendarCtrl DPI aware.
See #25762 .
2025-09-06 21:11:44 +02:00
Maarten Bent
e3bfafeb57
Make wxGenericCalendarCtrl DPI aware
...
Use FromDIP for the hard-coded constants, and replace some numbers with constants.
Don't use a fixed position in the calendar example.
2025-09-05 23:50:21 +02:00
Vadim Zeitlin
655f902e71
Test WarpPointer() in the drawing sample
...
This seems like the least inappropriate way for testing this function,
even though it's not really related to drawing.
2025-08-22 02:08:26 +02:00
Vadim Zeitlin
34031f3f04
Fix height of cursor boxes in the drawing sample
...
Remove wrong FromPhys() call, wxSYS_CURSOR_Y is expressed in logical
pixels, this is a leftover from an old and never used version of the
code in which it was wrongly expressed in physical ones.
2025-07-27 19:49:51 +02:00
Vadim Zeitlin
3b7ce8e9a7
Increment version to 3.3.2
...
Rebake all generated files.
2025-07-25 00:29:00 +02:00
Vadim Zeitlin
ea87876f50
Merge branch 'pg-compat'
...
Restore compatibility with code using wxPG_XXX flags.
See #25632 .
2025-07-16 01:30:56 +02:00
Vadim Zeitlin
ebf2d2ba27
Revert "Use enum class to represent NumericType"
...
This reverts commit 3cb3d62212 as this is
a backwards-incompatible change which is simply not worth it.
2025-07-14 23:53:56 +02:00
Bill Su
c2502beb3f
Add wxNUM_VAL_SIGN_PLUS and wxNUM_VAL_SIGN_SPACE
...
Add numeric formatting and validation styles for displaying
non-negative numbers with "+" or space prefix.
Closes #25635 .
2025-07-14 22:45:05 +02:00
Vadim Zeitlin
da91e73161
Show wxDatePickerCtrl and wxTimePickerCtrl in internal sample too
...
These controls are also locale-dependent, so it's useful to see how they
behave depending on the UI locale.
2025-07-08 18:12:42 +02:00
Vadim Zeitlin
f5030df227
Replace wxBoxSizer with wxFlexGridSizer in the internat sample
...
No real changes so far, just make it simpler to add more controls to
this sample in the upcoming commit.
2025-07-08 18:12:40 +02:00
Vadim Zeitlin
185c4e8cbc
Show path from wxDirPickerCtrl in its event handler too
...
Similar to the parent commit, but for wxFilePickerCtrl.
2025-07-05 17:04:28 +02:00
Vadim Zeitlin
b82188bab7
Show path from wxFilePickerCtrl in its event handler too
...
No real changes, just allow comparing the value of the path in the
control and the event directly in the sample.
2025-07-05 17:04:28 +02:00
Vadim Zeitlin
a0d2008d86
Fix French translation of "Number" in the internat sample
...
It's "Nombre", not "Numéro", in the context it's used here.
2025-06-29 16:08:57 +02:00
Bill Su
d18d35523d
Add wxAuiPaneInfo::FloatingClientSize()
...
Unix builds / Ubuntu 24.04 wxGTK with ASAN (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 3 compatible 3.0 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK UTF-8 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxQt (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxX11 (push) Has been cancelled
Unix builds / Ubuntu 20.04 wxGTK 3 with clang (push) Has been cancelled
Unix builds / Ubuntu 22.04 wxGTK with wx containers (push) Has been cancelled
Unix builds / Ubuntu 24.04 wxGTK with UBSAN (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxDFB (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 3 static with gcc 4.8 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 2 (push) Has been cancelled
CMake builds / Ubuntu 22.04 wxGTK 3 (push) Has been cancelled
CMake builds / MSW/MSVC wxMSW (push) Has been cancelled
CMake builds / MSW/Clang wxMSW (push) Has been cancelled
CMake builds / macOS latest wxOSX Ninja (push) Has been cancelled
CMake builds / macOS 14 wxOSX Xcode (push) Has been cancelled
CMake builds / macOS 14 wxIOS (push) Has been cancelled
CMake builds / MSW/MSVC wxQt 5.15 (push) Has been cancelled
CMake builds / MSW/MSVC wxQt 6.8 (push) Has been cancelled
Mac builds / wxMac Universal C++14 (push) Has been cancelled
Mac builds / wxMac ARM with ASAN (push) Has been cancelled
Mac builds / wxiOS (push) Has been cancelled
Mac builds / wxMac Intel C++17 (push) Has been cancelled
Mac Xcode builds / iOS Simulator static (push) Has been cancelled
Mac Xcode builds / macOS dynamic Release (push) Has been cancelled
Mac Xcode builds / iOS static Debug (push) Has been cancelled
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Has been cancelled
MSW builds / wxMSW vs2022 DLL Release x64 (push) Has been cancelled
MSW builds / wxMSW vs2022 Debug Win32 (push) Has been cancelled
MSW builds / wxMSW vs2022 Release arm64 (push) Has been cancelled
MSW cross-builds / wxMSW 64 bits (push) Has been cancelled
MSW cross-builds / wxMSW/Univ (push) Has been cancelled
MSW cross-builds / wxMSW 32 bits (push) Has been cancelled
Code Checks / Check Spelling (push) Has been cancelled
Code Checks / Check Whitespace (push) Has been cancelled
Code Checks / Check Mixed EOL (push) Has been cancelled
Code Checks / Check C++ Style (push) Has been cancelled
Code Checks / Check All Headers In allheaders.h (push) Has been cancelled
Update Documentation / Update Online Documentation (push) Has been cancelled
No Response / no-response (push) Has been cancelled
Using wxWindow::SetClientSize() can be more convenient than using
wxWindow::SetSize() and is guaranteed to work under all platforms, even
when the window decorations size may be unknown, so allow setting the
client size of floating wxAUI panes directly too.
Closes #25483 .
2025-06-26 12:55:09 +02:00
Vadim Zeitlin
ddb749d8e1
Fix searching for submenus when looking for the selected item
...
Use "item" sent by Windows as the position, not ID, for the submenus as
they don't have any IDs at Windows level.
This really fixes showing help string for the submenu items.
Closes #25505 .
2025-06-18 02:55:51 +02:00
Vadim Zeitlin
d5d14b1d4b
Simplify statbar sample by defining the frame base class once
...
Avoid multiple USE_MDI_PARENT_FRAME checks and just define BaseFrame as
wxMDIParentFrame (instead of the default wxFrame) once when using this.
Also don't pass hardcoded position and size to the frame ctor, we don't
need to do this at all and it's actually harmful in high DPI as the
hardcoded size was too small.
No real changes, just simplify the code.
2025-06-18 02:41:31 +02:00
Vadim Zeitlin
60eb8d0627
Operate on both controls in "Hyperlink" page of widgets sample
...
This ensures that operations such as disabling the control affect both
hyperlink controls on this page.
2025-06-13 18:14:34 +02:00
PB
d5c140a801
Fix webrequest and webview samples build with MSVC in C++20 mode
...
Unix builds / Ubuntu 24.04 wxGTK with ASAN (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 3 compatible 3.0 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK UTF-8 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxQt (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxX11 (push) Has been cancelled
Unix builds / Ubuntu 20.04 wxGTK 3 with clang (push) Has been cancelled
Unix builds / Ubuntu 22.04 wxGTK with wx containers (push) Has been cancelled
Unix builds / Ubuntu 24.04 wxGTK with UBSAN (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxDFB (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 3 static with gcc 4.8 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 2 (push) Has been cancelled
CMake builds / Ubuntu 22.04 wxGTK 3 (push) Has been cancelled
CMake builds / Windows MSVC (push) Has been cancelled
CMake builds / macOS latest wxOSX Ninja (push) Has been cancelled
CMake builds / macOS 14 wxOSX Xcode (push) Has been cancelled
CMake builds / macOS 14 wxIOS (push) Has been cancelled
CMake builds / Windows wxQt 6.8 (push) Has been cancelled
Mac builds / wxMac Universal C++14 (push) Has been cancelled
Mac builds / wxMac ARM with ASAN (push) Has been cancelled
Mac builds / wxiOS (push) Has been cancelled
Mac builds / wxMac Intel C++17 (push) Has been cancelled
Mac Xcode builds / iOS Simulator static (push) Has been cancelled
Mac Xcode builds / macOS dynamic Release (push) Has been cancelled
Mac Xcode builds / iOS static Debug (push) Has been cancelled
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Has been cancelled
MSW builds / wxMSW vs2019 DLL Release x64 (push) Has been cancelled
MSW builds / wxMSW vs2019 Debug Win32 (push) Has been cancelled
MSW builds / wxMSW vs2022 Release arm64 (push) Has been cancelled
MSW builds / msw-msys2-clang (push) Has been cancelled
MSW cross-builds / wxMSW 64 bits (push) Has been cancelled
MSW cross-builds / wxMSW/Univ (push) Has been cancelled
MSW cross-builds / wxMSW 32 bits (push) Has been cancelled
Code Checks / Check Spelling (push) Has been cancelled
Code Checks / Check Whitespace (push) Has been cancelled
Code Checks / Check Mixed EOL (push) Has been cancelled
Code Checks / Check C++ Style (push) Has been cancelled
Code Checks / Check All Headers In allheaders.h (push) Has been cancelled
Update Documentation / Update Online Documentation (push) Has been cancelled
No Response / no-response (push) Has been cancelled
Using a const char* and a wxString in the two branches of the ternary
operator resulted in compile-time errors when using C++20 standard
since the result type of the conditional expression was ambiguous,
so add explicit conversions to fix it.
See also #19355 .
Closes #25501 .
2025-06-09 22:57:00 +02:00
Vadim Zeitlin
29f9d3512a
Update version to 3.3.1 and rebake
2025-06-09 22:36:35 +02:00
Paul Cornett
b9eb9cdec3
Avoid some -Wfloat-conversion warnings
2025-06-01 07:28:49 -07:00
Vadim Zeitlin
b095a1d4db
Don't store bitmaps in wxArrayPtrVoid in widgets sample
...
Using wxArrayPtrVoid was ugly and completely unnecessary, just store
both item labels and bitmaps in a single vector.
No real changes, this is just code cleanup.
2025-05-31 18:57:54 +02:00
Blake-Madden
cd07eabd54
Add support for "Do not show this again" checkbox to wxInfoBar
...
Closes #25394 .
2025-05-26 17:54:07 +02:00
ChipZhang
5621b2bc8f
Fix compilation of widgets sample with wxUSE_TREEBOOK==0
...
Replace the remaining call to SetImageList() with SetImages() too.
This should have been part of e0ed66b8d3 (Use wxBitmapBundle for widgets
sample icons, 2025-03-30), see #25282 .
Closes #25428 .
Closes #25429 .
2025-05-20 15:06:27 +02:00
Vadim Zeitlin
74a1498eee
Remove unnecessary use of wxLogXXX("%s")
...
Just pass the strings directly to wxLogXXX functions as this works
correctly after the changes of the parent commit.
2025-05-17 22:44:48 +02:00
Vadim Zeitlin
3e6b664762
Merge branch 'cursor-bundle'
...
Unix builds / Ubuntu 24.04 wxGTK with ASAN (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 3 compatible 3.0 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK UTF-8 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxQt (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxX11 (push) Has been cancelled
Unix builds / Ubuntu 20.04 wxGTK 3 with clang (push) Has been cancelled
Unix builds / Ubuntu 22.04 wxGTK with wx containers (push) Has been cancelled
Unix builds / Ubuntu 24.04 wxGTK with UBSAN (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxDFB (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 3 static with gcc 4.8 (push) Has been cancelled
Unix builds / Ubuntu 18.04 wxGTK 2 (push) Has been cancelled
CMake builds / Ubuntu 22.04 wxGTK 3 (push) Has been cancelled
CMake builds / Windows MSVC (push) Has been cancelled
CMake builds / macOS 14 wxOSX (push) Has been cancelled
CMake builds / macOS 14 wxIOS (push) Has been cancelled
CMake builds / Windows wxQt 6.8 (push) Has been cancelled
Mac builds / wxMac Universal C++14 (push) Has been cancelled
Mac builds / wxMac ARM with ASAN (push) Has been cancelled
Mac builds / wxiOS (push) Has been cancelled
Mac builds / wxMac Intel C++17 (push) Has been cancelled
Mac Xcode builds / iOS Simulator static (push) Has been cancelled
Mac Xcode builds / macOS dynamic Release (push) Has been cancelled
Mac Xcode builds / iOS static Debug (push) Has been cancelled
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Has been cancelled
MSW builds / wxMSW vs2019 DLL Release x64 (push) Has been cancelled
MSW builds / wxMSW vs2019 Debug Win32 (push) Has been cancelled
MSW builds / wxMSW vs2022 Release arm64 (push) Has been cancelled
MSW builds / msw-msys2-clang (push) Has been cancelled
MSW cross-builds / wxMSW 64 bits (push) Has been cancelled
MSW cross-builds / wxMSW/Univ (push) Has been cancelled
MSW cross-builds / wxMSW 32 bits (push) Has been cancelled
Code Checks / Check Spelling (push) Has been cancelled
Code Checks / Check Whitespace (push) Has been cancelled
Code Checks / Check Mixed EOL (push) Has been cancelled
Code Checks / Check C++ Style (push) Has been cancelled
Code Checks / Check All Headers In allheaders.h (push) Has been cancelled
Update Documentation / Update Online Documentation (push) Has been cancelled
No Response / no-response (push) Has been cancelled
Add wxCursorBundle to make supporting high resolution cursors simpler.
Also some other cursor-related fixes.
See #25374 .
2025-05-11 18:53:32 +02:00
Maarten Bent
fd14294606
Recreate build-files
2025-05-10 18:22:27 +02:00
Maarten Bent
b0b3da6ce2
Add libwebp to MSVS solutions
2025-05-10 18:06:41 +02:00
Maarten Bent
ad80d9c45d
Fix outdated vcxproj files
2025-05-10 18:06:40 +02:00
Maarten Bent
d6209abf2d
Update and generate build files
...
Run upmake, bakefile_gen, makeprojects.py, update-setup-h, autogen.
2025-05-10 17:19:29 +02:00
Maarten Bent
090282a2e1
Add WebP format to animation sample
...
Improve high-dpi support.
2025-05-10 17:19:29 +02:00
Maarten Bent
be1ab5bfca
Show frames of animated images in image sample
2025-05-10 17:19:28 +02:00
Maarten Bent
a3087255b9
Add WebP image to image sample
2025-05-10 17:19:27 +02:00
Vadim Zeitlin
aa4ef6528a
Use wxCursorBundle for testing cursor in wxImage sample
...
As part of this change, the cursor.png file of unclear provenance added
back in 9ea83ebc7c (Add test for a custom cursor to the image sample.,
2010-07-24) is replaced with the new hand image with a non-zero hotspot
point taken from https://uxwing.com/up-hand-pointer-icon/
2025-05-07 23:16:11 +02:00
Vadim Zeitlin
c87b291d32
Add wxCursorBundle and implement support for it in wxGTK
...
This new class allows to let wxWidgets select the appropriate cursor,
similarly to how wxBitmapBundle allows to select the bitmap of the
appropriate size.
Document the new class and show using it in the drawing sample.
2025-05-07 23:16:11 +02:00
Vadim Zeitlin
9def7c87b4
Construct wxCursor from wxBitmap in the image sample
...
There is no need to use an intermediate wxImage any more.
We also don't need to copy cursor.png to the build directory, as it is
now used only during the build and not when running the sample, so don't
do this.
2025-05-07 23:16:11 +02:00
Vadim Zeitlin
3f85f59543
Add wxSysMetricChangedEvent and generate it in wxMSW
...
This event can be used to react to the changes in the default system
cursor size.
2025-05-07 23:16:11 +02:00
Vadim Zeitlin
817d82b779
Merge branch 'cursor-size' into master
...
Return correct cursor size in wxMSW and wxGTK.
Also show the different stock cursors in the drawing sample.
See #25364 .
Closes #25328 .
2025-05-04 22:07:26 +02:00
Vadim Zeitlin
dbf906eaed
Show stock cursors in the drawing sample too
...
Allow seeing the shapes (and sizes) of different standard cursors.
2025-05-04 19:39:07 +02:00
Vadim Zeitlin
e958b31ba9
Show the current cursor size in the drawing sample
...
There doesn't seem to be any sample more suitable than this one, so add
a "Cursors" screen to it, as we already have "Colours" screens there.
For now just show the cursor size.
2025-05-04 18:26:36 +02:00
Vadim Zeitlin
35c1764568
Test setting cursor from wxEVT_SET_CURSOR in event sample
...
It seems like the least inappropriate place to do it.
2025-05-03 18:27:55 +02:00
Vadim Zeitlin
0173a414fd
Make wxAuiFlatTabArt the default wxAuiNotebook art provider
...
Add wxAuiNativeTabArt which can be used to restore the previous default
behaviour.
See #25316 .
2025-04-17 18:16:52 +02:00
Vadim Zeitlin
a854e209a2
Merge branch 'gtk-safe-idle'
...
Fix handling exceptions thrown from wxApp idle event handler.
See #25315 .
2025-04-11 16:40:26 +02:00
Vadim Zeitlin
e6bb972215
Merge branch 'aui-flat-tab-art'
...
Add new flat AUI tab art.
See #25275 .
2025-04-10 17:24:08 +02:00
Vadim Zeitlin
15f547b5bd
Test throwing exception from wxApp idle handler
...
This doesn't work correctly in wxGTK currently, as the exception is not
passed to wxApp::OnExceptionInMainLoop() as expected, but it will be
fixed soon.
2025-04-10 16:40:08 +02:00
Vadim Zeitlin
01fef1580d
Merge branch 'treectrl-indent' of github.com:MaartenBent/wxWidgets
...
Fix wxTreeCtrl indent regression when the tree icon sizes is too small.
See #24640 , #25282 .
2025-04-04 17:58:10 +02:00
Maarten Bent
e0ed66b8d3
Use wxBitmapBundle for widgets sample icons
...
Increase the size of the wxTreeCtrl slightly so the items better fit.
2025-03-30 22:21:53 +02:00
Paul Cornett
6111681a94
Use a better size for date and time pickers in widgets sample
2025-03-28 16:22:21 -07:00
Paul Cornett
b79a391ffb
Avoid some unnecessary float conversions
2025-03-28 16:18:57 -07:00
Paul Cornett
e95eea2d5a
Avoid -Wstring-concatenation warning
2025-03-28 16:10:43 -07:00