Vadim Zeitlin
41dcd9ecdb
Add API for ellipsization support to wxGrid
...
This API is not implemented yet, i.e. ellipsization mode is not
respected for now. This commit just adds the API, documents it and adds
an example of using it in the sample.
2020-01-11 19:14:23 +01:00
Vadim Zeitlin
f13085441c
Add wxGridFitMode and functions working with it
...
Replace "bool overflow" flag with a class allowing to specify the same
overflow/clipping behaviour currently, but also allowing to extend it,
notable to add ellipsization support, in the future.
Preserve the existing API by reimplementing it in terms of the new one.
Also update the same to demonstrate a cell which always overflows,
independently of the default cell behaviour.
2020-01-11 18:02:12 +01:00
Vadim Zeitlin
9ec0511924
Add a test of catching wxEVT_CONTEXT_MENU to the grid sample
...
Verify that these events are seen as coming from the grid itself after
the changes of the previous commit.
2020-01-07 18:22:09 +01:00
Vadim Zeitlin
826cc882dc
Merge branch 'gtk-srchctrl'
...
Add native wxSearchCtrl implementation for wxGTK.
Closes https://github.com/wxWidgets/wxWidgets/pull/1688
2020-01-07 03:16:02 +01:00
ali kettab
c904e27376
Update widgets sample
2020-01-07 03:15:39 +01:00
Kvaz1r
a23b3783b6
Add precondition checks to operations in the listctrl sample
...
Avoid showing assert failures in debug builds if a menu item not
applicable in the current state is selected and just show an error
instead.
Closes #18572 .
Closes https://github.com/wxWidgets/wxWidgets/pull/1694
2020-01-06 00:47:26 +01:00
Artur Wieczorek
a5934f33e2
Fix building image sample with wxUSE_PALETTE==0
2019-12-28 23:31:51 +01:00
Artur Wieczorek
bb9c8b11de
Add demonstration of affine transformations to drawing sample
...
This adds a demonstration of drawing with affine 2D transformation applied
to wxDC. Transformation paramaters (translation, scale, rotation angle)
can be set/reset with new menu "Transformation".
2019-12-27 20:17:19 +01:00
Vadim Zeitlin
334ff40716
Show wxDataViewCheckIconTextRenderer in the sample
...
Instead of using separate check and icon+text columns in the list model
page, use the combined check+icon+text column to verify that it works
(which is not the case current in the native Mac version).
2019-12-15 19:27:58 +01:00
Vadim Zeitlin
2e71e14dc4
Fix format specifier in an error message in dataview sample
...
Use "%zu" for a size_t value to avoid assert failures under LP64 (i.e.
all 64-bit Unix) systems.
2019-12-15 19:26:18 +01:00
Vadim Zeitlin
f3217573d7
Merge branch 'rc-manifest' of https://github.com/MaartenBent/wxWidgets
...
Fix using manifest from rc file with VC compiler.
See https://github.com/wxWidgets/wxWidgets/pull/1678
2019-12-15 03:44:39 +01:00
Maarten Bent
083f4b3c32
Rename manifests to use underscores
2019-12-13 21:44:26 +01:00
Artur Wieczorek
1d744026f2
Demonstrate drawing text with tab characters
2019-12-10 23:14:49 +01:00
Vadim Zeitlin
0425050ad8
Use native wxDragImage by default in the sample
...
There doesn't seem to be any reason to default to the generic version.
Closes https://github.com/wxWidgets/wxWidgets/pull/1671
2019-12-07 14:53:49 +01:00
catalinr
392e119bbe
Fix dragimag sample compilation with modern compiler under MSW
...
Don't "override" UpdateBackingFromWindow() method of the base class
unless it really exists, which is only the case for the generic
wxDragImage implementation but not the native MSW one.
See https://github.com/wxWidgets/wxWidgets/pull/1671
2019-12-07 14:52:41 +01:00
Vadim Zeitlin
155885a3dd
Reformat splitter sample to follow wx style guidelines
...
Put "{" and "}" on their own lines. Also use spaces around "if"
condition and omit unnecessary comparisons with NULL.
No real changes.
See https://github.com/wxWidgets/wxWidgets/pull/1672
2019-12-07 14:47:51 +01:00
Xiaofeng Wang
1222ac3d7f
Fix crash in the splitter sample due to replacing null window
...
The sample could crash after the following sequence of actions:
1. Resize splitter to hide the right/left window.
2. Activate replace menu action.
Fix this by checking if the window being replaced is non-null.
Closes https://github.com/wxWidgets/wxWidgets/pull/1672
2019-12-07 14:45:38 +01:00
Vadim Zeitlin
7b36d72b44
Merge branch 'vc-pmdpi' of https://github.com/MaartenBent/wxWidgets
...
Add DPI Awareness option to nmake makefiles and MSVC projects.
See https://github.com/wxWidgets/wxWidgets/pull/1664
2019-12-03 02:29:25 +01:00
Vadim Zeitlin
7849d231d9
Merge branch 'build-option-fixes' of https://github.com/MaartenBent/wxWidgets
...
Miscellaneous build options fixes.
See https://github.com/wxWidgets/wxWidgets/pull/1661
2019-12-03 02:27:52 +01:00
Maarten Bent
067c192112
Add DPI aware manifest to minimal.vcxproj
2019-11-30 23:11:04 +01:00
Maarten Bent
bed8cd7b52
Rebake after adding DPI awareness option
2019-11-30 22:52:48 +01:00
Maarten Bent
016f00777e
Fix 'declaration hides previous local declaration' warnings
2019-11-29 00:21:01 +01:00
Maarten Bent
7daabeb98b
Rebake event sample
2019-11-28 22:05:00 +01:00
Vadim Zeitlin
04b6fc2f90
Add another cell with boolean renderer/editor to the sample
...
No real changes, just test the boolean cells appearance with the default
white background too.
2019-11-28 02:14:50 +01:00
Maarten Bent
3d1a8ef54e
Fix 'switch label contains default but no case' warning
2019-11-27 21:25:13 +01:00
Maarten Bent
136a43f033
Fix building display sample without wxUSE_DISPLAY
2019-11-21 23:43:04 +01:00
Maarten Bent
c4e54c78fd
Select active mode in display sample
...
Update sample to use SizerFlags.
Set a minimum size to the dialog.
2019-11-21 23:43:02 +01:00
Jouk
db2e571c1b
Add samples/event/chessboard.cpp to be compiled into the sample on OpenVMS
2019-11-19 08:33:38 +01:00
PB
33da780ecf
Add sample code showing how to create a new wxEvent class
...
In the event sample, show how create and use a new
wxEvent-derived class.
Closes https://github.com/wxWidgets/wxWidgets/pull/1633
2019-11-16 00:56:23 +01:00
Vadim Zeitlin
9b43bd8af2
Merge branch 'dpi-textctrl' of https://github.com/MaartenBent/wxWidgets
...
Improvements for wxTextCtrl, wxSearchCtrl, wxButton when using
non-default DPI.
See https://github.com/wxWidgets/wxWidgets/pull/1634
2019-11-13 15:47:59 +01:00
Vadim Zeitlin
767f545be5
Number displays in the sample starting from 1, not 0
...
This is more usual and coincides with the built-in display names under
MSW, where they're called "DISPLAY1", "DISPLAY2" etc.
No real changes.
2019-11-08 00:07:54 +01:00
Stefan Csomor
c9c5a4d99d
fixing include style
2019-11-05 19:52:53 +01:00
Maarten Bent
0e335b9dc1
Make button and searchctrl pages in widgets sample more DPI aware
2019-11-03 21:50:27 +01:00
Maarten Bent
8c0c3cc2b9
Use 'fit exactly' on button page in widgets sample to toggle wxBU_EXACTFIT
2019-11-03 21:50:27 +01:00
Vadim Zeitlin
fe35ddd34b
Make date cells in the grid sample more readable
...
Add labels for the columns using date format and labels for the cells
using date renderer/editor explicitly to give a better idea about what's
going on here.
Also use the same rows numbers for date cells as for the column ones for
consistency.
No real changes.
See 659ab78c6d
2019-11-01 18:48:07 +01:00
Vadim Zeitlin
349e73994b
Merge branch 'dpi-awareness-option' of https://github.com/MaartenBent/wxWidgets
...
Add wxUSE_DPI_AWARE_MANIFEST option allowing to choose to use a manifest
specifying per-monitor DPI awareness.
See https://github.com/wxWidgets/wxWidgets/pull/1622
2019-10-30 21:25:45 +01:00
Maarten Bent
a72c9b6dbc
Run autoconf and rebake after adding wxUSE_DPI_AWARE_MANIFEST
2019-10-30 00:02:08 +01:00
Vadim Zeitlin
0a02f4c190
Increment version number to 3.1.4
...
Done by running misc/scripts/inc_release, manually updating version.bkl,
rebaking and rerunning autoconf.
Also a header for the next version to the change log.
2019-10-28 14:11:00 +01:00
Vadim Zeitlin
2b3e3d6c10
Show wxRendererNative::DrawChoice() in the render sample too
...
See #18255 .
2019-10-25 17:47:02 +02:00
Vadim Zeitlin
616ad0d92b
Show status bar fields coordinates in a message box in the sample
...
Showing them directly on the screen using wxClientDC doesn't work in all
ports, notable under Mac.
See #18469 .
2019-10-25 04:10:23 +02:00
Artur Wieczorek
b97bf311e0
Log widget class name for focus events in widgets sample
...
This shows better what is going on with focus and makes troubleshooting easier.
2019-10-24 21:00:35 +02:00
Vadim Zeitlin
b8c9e6754d
Merge branch 'msvc-warns'
...
Fix an annoying MSVC warning in SDK headers.
Remove wxUSE_IOSTREAMH.
See https://github.com/wxWidgets/wxWidgets/pull/1614
2019-10-23 19:50:14 +02:00
Artur Wieczorek
a60c5b36fe
Don't attempt to delete root wxPGProperty in propgrid sample
...
The root wxPGProperty is not designed to be deleted so we should look
for a property to delete in the collection of its child properties.
Closes #18539 .
2019-10-23 18:02:35 +02:00
Paul Cornett
ffac936882
Fix crash in propgrid sample, see #18537
2019-10-22 19:51:50 -07:00
Vadim Zeitlin
8587a96d70
Remove unused member variable from listctrl sample
...
No real changes, just remove a stray declaration.
2019-10-22 18:49:32 +02:00
Vadim Zeitlin
e34823a0c4
Stop using wx/ioswrap.h in the samples
...
This is not necessary any longer after wxUSE_IOSTREAMH removal and it
makes the sample code more clear.
2019-10-22 02:42:33 +02:00
Vadim Zeitlin
fc711f869f
Remove obsolete wxUSE_IOSTREAMH option
...
This is always 0 for any still supported compiler, so remove the option
and configure checks for it.
Still define it as 0 for compatibility, just in case it's used outside
of the library.
2019-10-21 20:46:21 +02:00
Vadim Zeitlin
b66a4b9948
Add a menu item to start editing the cell to grid sample
...
Show that this is done using EnableCellEditControl() and not
ShowCellEditControl(), as might have been expected.
2019-10-13 01:56:13 +02:00
Olly Betts
18e05aeeee
Remove no-op uses of wxNO_FULL_REPAINT_ON_RESIZE
...
This behaviour has been the default and this constant 0 since
e441e1f4e8
which was over 16 years ago.
Closes https://github.com/wxWidgets/wxWidgets/pull/1601
2019-10-11 14:12:43 +02:00
Artur Wieczorek
4c6b12744c
Demonstrate drawing cross hair in drawing sample
...
There is no such demonstration so far.
2019-10-10 19:37:52 +02:00