Artur Wieczorek
716f42b416
Fix drawing sample compilation when wxUSE_GRAPHICS_CONTEXT==0
...
'File_ShowGraphics' constant is not defined in this case so it cannot be referred to.
2017-03-25 21:00:51 +01:00
Artur Wieczorek
4aed8cd0be
Fix harmless warnings in samples (wxGTK)
...
Under wxGTK, wxAboutBox with no parent raises a warning "GtkDialog mapped without a transient parent".
2017-03-20 23:32:52 +01:00
Kelvin Lee
c4f6cf21dc
Use canonical format for MSVS project/solution files
...
Use the same format as is used by MSVS itself to avoid spurious changes when
modifying the files. Notably:
- Use DOS end of line format (0D 0A).
- Add UTF-8 BOM (EF BB BF) to the beginning of the files.
- Do not put CR LF at the end of the last line in the file.
Closes https://github.com/wxWidgets/wxWidgets/pull/440
2017-03-18 15:14:26 +01:00
New Pagodi
962979ebf1
Add option to display custom context menu in stc sample
...
This option could be useful to demonstrate ability to replace (override) standard Scintilla context menu with custom one. Switching between standard and custom popup menu is done with "Extra -> Custom popup menu" menu option.
2017-03-16 23:31:18 +01:00
New Pagodi
f33da324c0
Don't use deprecated function in stc sample
...
Call to deprecated wxStyledTextCtrl::SetStyleBits() function can be omitted because underlying SCI_SETSTYLEBITS API is not operational anymore.
See #17671 .
2017-03-07 19:07:38 +01:00
Artur Wieczorek
da66e81fb9
Update bounding box when drawing gradients in drawing sample
...
Advanced gradients are drawn using wxGraphicsContext and hence bounding box for underlying wxDC is not updated automatically. We need to update bounding box with extents of all used graphics paths.
2017-03-06 18:48:49 +01:00
Artur Wieczorek
92b64ff997
Set background colour of saved image in drawing sample
...
Initialize background colour prior to actual drawing to make it uniform for all kinds of drawing operations.
2017-03-06 18:47:02 +01:00
Artur Wieczorek
8950ac9a3f
Change keyboard shortcut to show bounding box in drawing sample
...
Ctrl-B shortcut is already used to change background mode.
2017-03-03 21:08:53 +01:00
Artur Wieczorek
8aee0244b0
Add option to save as PostScript in drawing sample
2017-03-03 21:07:58 +01:00
Artur Wieczorek
3d4850bdf3
Use size of drawing area as a size of saved images in drawing sample
...
Determine actual size of drawing area and use it (instead of virtual size of the window) as a dimension of the images to be saved. Thanks to this clipping, produced images contain only results of drawing operations and not lot of empty background space.
2017-03-03 21:06:06 +01:00
Artur Wieczorek
c0b6540c6f
Add option to show bounding box in drawing sample
...
Visualizing bounding box can be helpful in diagnosing problems with determining extents of drawing operations.
2017-03-02 20:57:30 +01:00
VZ
aaa31b121c
Don't build samples not supported in current wxMSW build
...
Fix certain samples being compiled when they shouldn't because the
corresponding feature was disabled when building the library.
2017-02-27 23:17:37 +01:00
Lauri Nurmi
b8192cb8e1
Allow hiding command line arguments from Usage()
...
Add wxCMD_LINE_HIDDEN wxCmdLineParser flag allowing to hide options and/or
parameters.
A hidden/unlisted argument is processed as usual, but not shown in the output
given by Usage(). A use case for such could be diagnostics switches that
should exist but are not useful to the end user.
Closes https://github.com/wxWidgets/wxWidgets/pull/390
2017-02-20 17:53:04 +01:00
Vadim Zeitlin
d15bbcacd2
Merge branch 'rmv_symbols_3' of https://github.com/catalinr/wxWidgets
...
Remove obsolete mentions of Windows 9x, Windows CE and OS/2.
2017-02-20 17:46:45 +01:00
New Pagodi
bac4d24bf9
Don't handle deprecated event in stc sample
...
EVT_STC_KEY is not generated and there is no reason to handle it.
See #17688 .
2017-02-16 18:19:16 +01:00
Raul Tambre
779276d854
Fix STC samples being compiled when USE_STC=0
2017-02-12 15:17:22 +02:00
Raul Tambre
801b0b1c30
Fix the richtext sample being compiled when USE_RICHTEXT=0
2017-02-12 15:17:22 +02:00
Raul Tambre
314d3adbee
Fix ribbon samples being compiled when USE_RIBBON=0
2017-02-12 15:17:22 +02:00
Raul Tambre
cbd516c52f
Fix the propgrid sample being compiled when USE_PROPGRID=0
2017-02-12 15:17:22 +02:00
Raul Tambre
3ad61b9005
Fix media samples being compiled when USE_MEDIA=0
2017-02-12 15:17:22 +02:00
Raul Tambre
5d3ef67019
Fix the except sample being compiled when USE_EXCEPTIONS=0
2017-02-12 15:17:22 +02:00
Raul Tambre
8d345a6201
Fix HTML-dependent samples being compiled when USE_HTML=0
...
Fixes #17780
2017-02-12 15:17:22 +02:00
Artur Wieczorek
506b51cae5
Add drawing a multi-line text to the printing sample
...
This can be helpful in testing API to draw multi-line texts.
See #17798 .
2017-02-11 21:52:51 +01:00
Artur Wieczorek
7ebc60b1fe
Show the version of Scintilla used in the about dialog of the stc sample
...
Call wxStyledTextCtrl::GetLibraryVersionInfo() to see what version of Scintilla is being used.
2017-02-09 22:27:47 +01:00
Tobias Taschner
3206df50c4
Add Microsoft Visual Studio 2017 solution file for building wxMSW
...
Allow building with VS15 out of the box.
Closes https://github.com/wxWidgets/wxWidgets/pull/353
2017-01-16 17:02:10 +01:00
Artur Wieczorek
0649b0d028
Use wxGraphicsContext::CreateFromUnknownDC in the printing sample
...
Creating graphics context for the various flavors of wxDC can be simplified by using this newly introduced API.
2017-01-11 20:32:43 +01:00
Vadim Zeitlin
59bd1178f1
Fix build with RTTI turned off using MSVC makefiles
...
Rebake these makefiles using fixed version of bakefile (pre-0.3.0).
See https://github.com/vslavik/bakefile/pull/85
Closes #17767 .
2017-01-04 12:01:14 +01:00
Vadim Zeitlin
395d453c94
Link with oleacc.lib when using MSW gcc makefiles
...
This library is now required when wxUSE_ACCESSIBILITY==1, but was only linked,
using a compiler-specific pragma, when using MSVC resulting in link errors
with gcc.
Fix this by adding the library to the bakefile for non-MSVC compilers and
rebaking.
2017-01-04 11:50:18 +01:00
Tobias Taschner
e0a2e09031
Update year in copyright notices to 2017
...
Use 2017 instead of 2016, mostly in version info files.
Closes https://github.com/wxWidgets/wxWidgets/pull/379
2017-01-04 11:25:00 +01:00
Cătălin Răceanu
fc2cc74530
Improve UI of the "Button" page of the widgets sample
...
Allow only permitted combinations of text, bitmap and command link.
Also avoid null pointer crash when combining "Bitmap only" with "Use command link button".
2016-12-07 01:32:10 +01:00
Paul Cornett
d20fb180b1
Display system colors in alphabetical order
2016-12-04 11:33:48 -08:00
Paul Cornett
cb19499c90
Fix layout of drawing sample System colours screen for colors with non-opaque alpha
2016-11-20 09:59:33 -08:00
Paul Cornett
d3497d32ec
Size text sample to it's contents, rather than using fixed arbitrary size
2016-11-14 10:43:56 -08:00
Artur Wieczorek
bc8728b901
Implement MyCustomRenderer::GetAccessibleDescription() in dataview sample
...
If wxUSE_ACCESSIBILITY is set to 1, this method has to be overridden for all custom renderers.
2016-10-24 21:55:10 +02:00
Vadim Zeitlin
ca3e63656c
Remove unwanted flag from sizer in the help sample
...
This resulted in an assert failure as wxALIGN_CENTER_VERTICAL has no chance of
working for an element of a vertical wxBoxSizer.
2016-10-15 13:41:31 +02:00
Scott Talbert
fae271c21c
Fix assert in webview sample when using find functionality
2016-09-29 01:35:28 +02:00
Vadim Zeitlin
d0c57dbef0
Fix string iteration logic in wxFTP::Pwd()
...
wxString iterators can't be dereferenced once they reach the end of the
string, so compare them with end rather than checking if the value they point
to is non-NUL.
This makes wxFTP::Pwd() actually work, which was apparently broken since quite
some time (perhaps ever since c9f7896861 9+
years ago).
Closes #17679 .
2016-09-25 01:20:41 +02:00
Artur Wieczorek
27627db87d
Fix warning about signed/unsigned mismatch in the accessibility sample
...
Just to suppress harmless compiler warning.
2016-09-20 20:37:18 +02:00
Artur Wieczorek
6ae6a79c67
Fix MSVC14 warnings about a shadowed variable in the accessibility sample
...
Just to suppress some harmless warnings.
2016-09-20 20:37:17 +02:00
Artur Wieczorek
8197acfd4b
Fix compilation error in accessibility sample
...
Since f3ddefc1ad wxSplitterWindow::SashHitTest() has only two parameters.
2016-09-20 20:37:17 +02:00
ARATA Mizuki
8cfc74491a
Replace wxEXPLICIT with the 'explicit' keyword
...
See #17655 .
2016-09-14 18:45:12 +09:00
ARATA Mizuki
1e6251d592
Replace wx_static_cast/wx_const_cast/wx_reinterpret_cast with the function-style casts
...
See #17655 .
2016-09-14 18:45:12 +09:00
Vadim Zeitlin
9cb762dbd2
Rebake to get rid of whitespace-only changes in generated files
...
This just commits insignificant changes after rebaking everything to make sure
they don't get mixed up with significant ones at some later time.
2016-09-08 00:48:06 +02:00
Vadim Zeitlin
50c16da687
Remove invalid "option" elements from XRC sample file
...
<option> can't be used for wxFlexGridSizer items, remove all these tags to
allow the file to validate against the XRC schema.
2016-07-06 18:48:35 +02:00
Vadim Zeitlin
3dc54df247
Ignore hints on wxTE_PASSWORD controls when not supported natively
...
There is no way to show the hint without native support in a control with
wxTE_PASSWORD style, so simply ignore them completely in this case.
Closes #17078 .
2016-06-28 14:40:52 +02:00
Vadim Zeitlin
f792ba45f6
Merge branch 'dvc-markup'
...
Add support for using markup in wxDataViewCtrl items.
2016-06-16 17:49:54 +02:00
Vadim Zeitlin
74c0462c84
Add wxDataViewTextRenderer::EnableMarkup()
...
Implement the new method to all the implementations (generic, GTK, OS X), show
it in the sample and update the documentation.
2016-06-16 00:06:23 +02:00
Dimitri Schoolwerth
3c4e29e0da
Fix accidental changes made to menu sample
...
Only German translations were supposed to be updated according to
8437c6a443 but it also made test changes
to samples/menu/menu.cpp, revert those.
2016-06-15 02:38:10 +02:00
Maarten Bent
c7e4b301d0
Add saving as SVG to drawing sample.
...
Changed the colour of the third star-polygon to test brush pattern with different colours.
Use the width and height of the scroll panel as image size.
2016-06-12 18:40:11 +02:00
Vadim Zeitlin
4dfde501df
Add support for returning item location to wxGTK wxMimeTypesManager.
...
This is a squash merge of gtk_mimetype branch from
https://github.com/Hanmac/wxWidgets.git with some extra minor cleanup.
Closes https://github.com/wxWidgets/wxWidgets/pull/293
2016-06-07 14:29:52 +02:00