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
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
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
Tobias Taschner
68c46681a0
Document wxWebViewEdge build process
2020-01-11 15:43:22 +01:00
Tobias Taschner
1f1202807b
Implemented wxWebViewEdge::Print()
2020-01-11 15:06:29 +01:00
Tobias Taschner
a1a155618e
Set Edge data folder to UserLocalDataDir
2020-01-11 14:59:08 +01:00
Tobias Taschner
f919b6e2f5
Rename from webview_edgec to webview_edge
2020-01-11 14:47:47 +01:00
Tobias Taschner
d72e5874eb
Add wxWebView methods to enable dev tools
...
Currently only implemented for the Edge (Chromium) backend.
2020-01-10 22:27:36 +01:00
Tobias Taschner
f2196abca3
Add wxWebViewEdgeChromium to other build systems
2020-01-10 22:22:30 +01:00
Tobias Taschner
6750d30102
Load WebView2Loader.dll dynamically
2020-01-10 22:22:29 +01:00
Markus Pingel
6a99e7e273
Add wxWebView Edge (Chromium) implementation
...
This backend requires WebView2 SDK and enables usage of Edge (Chromium)
on Windows 7 and newer
2020-01-10 22:22:28 +01:00
Tobias Taschner
1afeaa324d
Added new build option wxUSE_WEBVIEW_EDGE
2020-01-10 21:42:18 +01:00
Tobias Taschner
095a93e0c0
Add wxWebView::IsBackendAvailable()
...
This allows to check if a specified backend has been registered before creation of a new instance
2020-01-09 13:44:06 +01:00
Steve Browne
bb14c5f69b
Preserve mask when copying wxBitmapRefData to avoid crashes
...
This crash was introduced in 2d15218c9d
and could happens inside wxBitmap::MSWBlendMaskWithAlpha() because the
code checked for a mask and alpha, but the mask could be lost after
AllocExclusive().
In practice, this happened e.g. when using 16-bit color as is the case
for Windows 7 Hyper-V VMs.
Closes https://github.com/wxWidgets/wxWidgets/pull/1695
2020-01-07 16:56:50 +01:00
Vadim Zeitlin
d52331046c
Merge branch 'gtk-srchctrl'
...
Add native wxSearchCtrl implementation for wxGTK.
Closes https://github.com/wxWidgets/wxWidgets/pull/1688
2020-01-07 03:22:52 +01:00
Vadim Zeitlin
b2ab6c99e4
Fix wxCommandEvent::GetString() for wxSearchCtrl events
...
wxEVT_TEXT events generated by native wxSearchCtrl implementations
always returned an empty string, as wxSearchCtrl was not recognized by
the special hack inside wxCommandEvent::GetString() which retrieved the
text on demand.
Fix this by adding yet another special case for this. This is not ideal,
but should do for now.
2020-01-07 03:22:39 +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
Vadim Zeitlin
2635360f3c
Mention GTK native version in wxSearchCtrl documentation
...
Document some of the (minor) limitations of the native implementation as
well as its existence itself.
2020-01-07 03:15:39 +01:00
Vadim Zeitlin
d62b79a11b
Fix wxCommandEvent::GetString() for wxSearchCtrl events
...
wxEVT_TEXT events generated by native wxSearchCtrl implementations
always returned an empty string, as wxSearchCtrl was not recognized by
the special hack inside wxCommandEvent::GetString() which retrieved the
text on demand.
Fix this by adding yet another special case for this. This is not ideal,
but should do for now.
2020-01-07 03:15:39 +01:00
ali kettab
c904e27376
Update widgets sample
2020-01-07 03:15:39 +01:00
ali kettab
020b6ebcb8
Derive from wxTextEntry instead of wxTextCtrlBase
2020-01-07 03:15:39 +01:00
AliKet
c09db9c23d
Add native wxSearchCtrl for GTK+ port
2020-01-07 03:15:35 +01:00
PB
1b93041d6e
Improve wxRegKey documentation
...
Expand the class description.
Fix and improve the code example.
Closes https://github.com/wxWidgets/wxWidgets/pull/1693
2020-01-07 02:39:33 +01:00
PB
53df59a14a
Add wxTrac-related instruction to how-to-release.md
...
Note that the version for the next release must be
increased in wxTrac example queries.
Closes https://github.com/wxWidgets/wxWidgets/pull/1692
2020-01-06 01:05: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
Vadim Zeitlin
89be9ac316
Fix comment for wxUSE_NATIVE_DATAVIEWCTRL in setup.h
...
The values of the option in the comment were inversed when it was added
in 028afa194a
, fix this now.
2020-01-03 18:05:02 +01:00
Paul Cornett
833ae03c6a
Draw bitmap in disabled state when wxStaticBitmap control is not enabled on GTK3
...
See #18638
2019-12-29 09:14:08 -08:00
Paul Cornett
8db62d179c
Move code for creating a disabled bitmap to wxBitmap
...
To allow using it from multiple places
2019-12-29 09:08:40 -08:00
Vadim Zeitlin
dda052d38a
Fix activation loss when hiding floating frame TLW in wxMSW
...
Generalize the fix of d6fb86a81c
and
explicitly activate the parent when a TLW with wxFRAME_FLOAT_ON_PARENT
style is hidden or minimized and not only when it is destroyed.
Closes #18535 .
2019-12-29 16:47:49 +01:00
Ian McInerney
577faedb65
Fix docs for wxDEPRECATED_MSG macro
...
Add the missing macro definition.
Closes https://github.com/wxWidgets/wxWidgets/pull/1689
2019-12-29 15:37:13 +01:00
Vadim Zeitlin
8b90073c83
Send kill focus events to modal dialogs earlier in wxGTK
...
Ensure that the dialog is still alive when it gets the kill focus event
for its child which had focus just before the dialog was closed (or any
other events generated by this child when it detects that it's losing
focus, such as wxEVT_SPINCTRL) by resetting focus when the dialog is
being hidden and not when it's being destroyed.
This makes the events order more consistent with wxMSW but also, most
importantly, safer, as wxEVT_KILL_FOCUS handlers could previously easily
reference the fields of an already half-destroyed wxDialog-derived
object by the time they were run during wxTopLevelWindowGTK destructor
execution.
Closes #18145 .
2019-12-29 01:40:28 +01:00
Artur Wieczorek
38cec22d4c
Use division assignment operator to simplify the statement
2019-12-28 23:34:17 +01:00
Artur Wieczorek
c6e188610d
Don't allocate colour tables if palletes are not in use
2019-12-28 23:32:34 +01:00