Vadim Zeitlin
a73194f6b4
Allow parsing all fractional sizes in wxFont descriptions
...
Remove the check that the size representation was the same as float and
as double, which was supposed to catch various edge cases (NaNs, huge
numbers etc) but actually caught plenty of perfectly valid font sizes
such as 13.8 that simply lost precision when converting from double to
float.
Just check that the size is positive and less than FLT_MAX to avoid
using values that really don't make sense as font sizes.
Also add a unit test checking that using fractional font sizes in
description string works as expected.
Closes #18590 .
Closes https://github.com/wxWidgets/wxWidgets/pull/1707
2020-01-19 17:46:55 +01:00
Maarten Bent
b3f259c99c
Fix reverting to standard cursor in widgets sample
...
Don't set the cursor to wxSTANDARD_CURSOR, but set it to wxNullCursor so the
default system cursor is used.
2020-01-19 14:56:48 +01:00
Maarten Bent
a31cf55a8d
Add more columns to Header control in widgets sample
...
Show column settings horizontally.
Fix binding to header control events after it is recreated.
2020-01-19 14:56:45 +01:00
Maarten Bent
fd9df06d35
Fix applying header style of wxMSWHeaderCtrl
...
Call SetWindowStyleFlag when creating the control. Apply wxHD_BITMAP_ON_RIGHT
style. Get rid of the helper function.
2020-01-19 14:55:39 +01:00
Artur Wieczorek
28098259a8
Suppress MSVC++ performance warning
...
MSVC++ doesn't seem to honour implicit int -> bool conversion and raises
warning C4800: "'int': forcing value to bool 'true' or 'false' (performance
warning)".
2020-01-19 09:56:24 +01:00
Vadim Zeitlin
b02fbafb96
Don't update wxDataViewColumn after it was resized interactively
...
Previously, the column was updated, i.e. wxHeaderCtrl::UpdateColumn()
was called, after the column width was changed interactively by the
user. This was unnecessary and actually harmful as it resulted in
recursion and display corruption.
Stop doing this by adding yet another width-related function to the
generic wxDataViewColumn called WXOnResize(), which just updates the
main window display, but doesn't update the header at all, and calling
it instead of SetWidth(), which does both, when the column is resized.
Closes #18245 .
2020-01-19 03:28:13 +01:00
Vadim Zeitlin
655e29ff1a
Remove a duplicate OnColumnChange() call
...
If the width really changed, wxDataViewColumn::SetWidth() already calls
wxDataViewCtrl::OnColumnChange() (via UpdateWidth()), so it's
unnecessary to call the latter again immediately after calling the
former. And if the width didn't change, it's not necessary to call it at
all, so in either case the OnColumnChange() call can be just removed.
No real changes.
2020-01-19 03:11:40 +01:00
Tobias Taschner
26c82d43d1
Decode strings returned by ExecuteScript()
...
ExecuteScript returns strings as fully
quoted JSON strings so they have to be decoded
to a binary string.
2020-01-17 21:11:26 +01:00
Tobias Taschner
fb0e82e9d1
Implement GetPageSource() and GetPageText()
2020-01-17 21:09:51 +01:00
Maarten Bent
ce968d0ecb
Enable building without wxUSE_WEBVIEW_IE
2020-01-17 09:37:12 +01:00
Vadim Zeitlin
6873dc67fb
Update bundled libtiff to 4.1.0
2020-01-17 03:15:30 +01:00
Vadim Zeitlin
f216fce116
Update bundled libpng to 1.6.37 version
2020-01-17 03:15:12 +01:00
Maarten Bent
e700a02964
Use correct toolbar tool index when determining best size
...
Closes #18652 .
Closes https://github.com/wxWidgets/wxWidgets/pull/1708
2020-01-17 03:04:38 +01:00
Tobias Taschner
bb508dc347
Implement text selection in wxWebViewEdge
...
Text selection/copy/paste etc implemented via javascript
2020-01-16 20:50:26 +01:00
Tobias Taschner
048c1c4321
Fix javascript return values
...
Return values where wrapped by quotes because of
wrapper code used for IE compatibility.
2020-01-16 20:49:00 +01:00
Tobias Taschner
20c155e67f
Send wxEVT_WEBVIEW_NAVIGATED after updating history
2020-01-16 19:59:37 +01:00
Tobias Taschner
1a72654d69
Send wxEVT_WEBVIEW_LOADED
2020-01-16 19:59:37 +01:00
Tobias Taschner
e211e14ace
Revert "Remove outdated code and comment"
...
This reverts commit f48770ee5a
.
The changes broke back history returned
2020-01-16 19:39:40 +01:00
Tobias Taschner
9f6beb00c2
Restore %(AdditionalIncludeDirectories) in wx_webview.vcxproj
2020-01-16 10:55:22 +01:00
Tobias Taschner
4ebde54d41
Only show IE specific menus in webview sample when using IE
2020-01-16 10:46:19 +01:00
Tobias Taschner
d829e5e832
Document unsupported parameters
2020-01-16 10:37:31 +01:00
Tobias Taschner
26108fa61d
Remove float constants when used with double
2020-01-16 10:32:43 +01:00
Tobias Taschner
16b6f6710f
Change handlers not supported message to debug
2020-01-16 10:29:35 +01:00
Tobias Taschner
a19270df8f
Implement title changed event
2020-01-16 10:26:14 +01:00
Tobias Taschner
41f4a21736
Apply suggestions from code review
...
Co-Authored-By: Maarten <MaartenBent@users.noreply.github.com >
2020-01-16 10:15:11 +01:00
Tobias Taschner
12c462d424
Add TODOs for unimplemented wxWebViewEdge features
2020-01-16 10:10:02 +01:00
Tobias Taschner
5dae0333b3
Improve wxWebViewEdge::RunScriptSync() error handling
2020-01-16 09:56:36 +01:00
Tobias Taschner
9f11abd8fc
Rename wxWebView::EnableDevTools() to EnableAccessToDevTools()
2020-01-16 09:38:35 +01:00
Tobias Taschner
f48770ee5a
Remove outdated code and comment
2020-01-15 22:21:16 +01:00
Tobias Taschner
b4764bbf4f
Fix typo in interface/wx/webview.h
...
Co-Authored-By: PB <PBforDev@gmail.com >
2020-01-15 22:14:23 +01:00
Tobias Taschner
f8e69e4166
Call CoTaskMemFree() on LPWSTR return by WebView2 API
2020-01-15 22:13:12 +01:00
Tobias Taschner
964992e7ff
Move WebView2 event handling from lambdas to functions
2020-01-15 21:51:58 +01:00
Tobias Taschner
bbde6e2e88
Move wxWebViewEdge implementation to private header
2020-01-15 21:23:37 +01:00
Vadim Zeitlin
1ace3b336e
Update strings of already created wxGridCellChoiceEditor too
...
Calling wxGridCellChoiceEditor::SetParameters() didn't have any effect
if the editor had been already used because this method only updated the
internally stored m_choices, used for creating the combobox, but not the
strings actually used by the combobox, if it had been already created.
Also mention that this works in the documentation.
Closes #10465 .
2020-01-15 20:03:56 +01:00
Tobias Taschner
0d00af5913
Add wxLogApiError() to important WebView2 API calls
2020-01-15 17:05:34 +01:00
Tobias Taschner
903279a9af
Add a note about WebView2 SDK license requirements
2020-01-15 17:05:34 +01:00
Tobias Taschner
bf6b51e702
Various small code fixups
2020-01-15 17:05:27 +01:00
Tobias Taschner
bce0e65a80
Rename wxWebView::IsDevToolsEnabled() to IsAccessToDevToolsEnabled()
2020-01-15 16:22:43 +01:00
Tobias Taschner
e20296fee2
Remove explicit check for Windows 7
2020-01-15 16:17:45 +01:00
Tobias Taschner
dea80692b4
Use wxDL_INIT_FUNC() macro
2020-01-15 16:13:26 +01:00
Tobias Taschner
21cc8a4e49
Update setup.h files
2020-01-15 15:58:30 +01:00
Tobias Taschner
c3f0b7a6cb
Apply suggestions from code review
...
Co-Authored-By: VZ <vz-github@zeitlins.org >
2020-01-15 15:55:49 +01:00
Lauri Nurmi
e8b8b0288f
Make wxNewId() and others return/take wxWindowID rather than int
...
wxWindowID is a typedef of int, so nothing should really change, except
for the improved readability.
Closes https://github.com/wxWidgets/wxWidgets/pull/1682
2020-01-15 14:28:33 +01:00
Vadim Zeitlin
fdc2e1b8bd
Merge branch 'grid-ellipsize'
...
Implement support for ellipsization in wxGrid.
See https://github.com/wxWidgets/wxWidgets/pull/1705
2020-01-15 14:23:29 +01:00
ExplorerLog
4636c563c7
Fix "Quit" menu item help translation to zh_CN
...
Closes https://github.com/wxWidgets/wxWidgets/pull/1706 .
Closes https://github.com/wxWidgets/Phoenix/issues/1484 .
2020-01-15 12:23:33 +01:00
Tobias Taschner
049d253a85
Fix typo and wording in webview documentation
2020-01-14 09:55:30 +01:00
Tobias Taschner
19b85d6370
Update interface/wx/webview.h
...
Co-Authored-By: PB <PBforDev@gmail.com >
2020-01-12 21:10:41 +01:00
Tobias Taschner
e365fbbac8
Update include guards
...
Co-Authored-By: PB <PBforDev@gmail.com >
2020-01-12 20:05:47 +01:00
Vadim Zeitlin
f5548e399e
Fix problem with dragged icon remaining on screen under MSW 10
...
Always perform cleanup on drop, even if OnDrop() threw an exception.
Closes #18499 .
2020-01-11 23:37:38 +01:00
Vadim Zeitlin
1b6856931a
Fix problem with dragged icon remaining on screen under MSW 10
...
Always perform cleanup on drop, even if OnDrop() threw an exception.
Closes #18499 .
2020-01-11 23:36:38 +01:00