That won't be necessary anymore. Check the sample code at: https://docs.wxwidgets.org/trunk/classw ... quest.html
Search found 19133 matches
- Wed Apr 17, 2024 4:13 pm
- Forum: The Code Dump
- Topic: wxDownloadFile
- Replies: 19
- Views: 29070
Re: wxDownloadFile
- Tue Apr 16, 2024 4:23 pm
- Forum: Open Discussion
- Topic: Pdf viewer with some special needs
- Replies: 5
- Views: 179
Re: Pdf viewer with some special needs
Can wxwebview handle layers and also set exact zoom levels to 0.01%? It's not a matter of wxWebView, it depends on the JS library you use for the PDF rendering. According to the demo page https://mozilla.github.io/pdf.js/web/viewer.html , PDF.js supports layers. I couldn't find any information abou...
- Mon Apr 15, 2024 5:14 pm
- Forum: Open Discussion
- Topic: Pdf viewer with some special needs
- Replies: 5
- Views: 179
Re: Pdf viewer with some special needs
The first part should be possible, but the second part will be tricky. Are the PDFs under your control, or could they come from anywhere? wqxpdfdocument is for creating PDFs, so that's only helpful if you create the PDFs yourself and then display them using whatever method. If the PDFs are not under...
- Sun Apr 14, 2024 10:12 pm
- Forum: Compiler / Linking / IDE Related
- Topic: #include issue in vscode on Linux
- Replies: 9
- Views: 265
Re: #include issue in vscode on Linux
I would suggest to build wxWidgets from source. That way you also get the samples which you can build from the command line as confirmation that everything was built correctly. Then you can configure your IDE/editor etc. https://github.com/wxWidgets/wxWidgets/blob/master/docs/gtk/install.md https://...
- Thu Apr 11, 2024 4:47 pm
- Forum: C++ Development
- Topic: Flickering is happening for the listview items
- Replies: 10
- Views: 356
Re: Flickering is happening for the listview items
The control already has a mouse over effect, why do you need a different one?
- Thu Apr 11, 2024 3:56 pm
- Forum: C++ Development
- Topic: Flickering is happening for the listview items
- Replies: 10
- Views: 356
Re: Flickering is happening for the listview items
First of all: This only works at all because you're under Windows where a generic implementation of wxListCtrl is used. a) never call Refresh() from inside a paint event handler. That just doesn't make any sense b) When calling Refresh() from the mouse event handler, calculate the exact rectangle th...
- Thu Apr 11, 2024 3:13 pm
- Forum: C++ Development
- Topic: Flickering is happening for the listview items
- Replies: 10
- Views: 356
Re: Flickering is happening for the listview items
wxListView uses a underlying native control on most platforms, and is therefore unsuitable for any visual customization except of what's possible through its public api.
I suggest you use wxVListBox instead
https://docs.wxwidgets.org/trunk/classw ... t_box.html
I suggest you use wxVListBox instead
https://docs.wxwidgets.org/trunk/classw ... t_box.html
- Wed Apr 10, 2024 5:32 pm
- Forum: wxWidgets Development (Russian)
- Topic: GUI из DLL\so
- Replies: 4
- Views: 369
Re: GUI из DLL\so
Is this wxWidgets related?
In any case, please be more specific about what you're trying to do, and what the problem is.
In any case, please be more specific about what you're trying to do, and what the problem is.
- Wed Apr 10, 2024 4:38 pm
- Forum: C++ Development
- Topic: Capturing keys
- Replies: 7
- Views: 10273
Re: Capturing keys
And I still think that's buggy, the way a wxMessageBox() causes the 1) switch to repeat itself 4 times, or 2) the method to loop 4 times. I doubt it's a bug. Showing a new window changes the keyboard focus, so bad things can happen if you're inside a key event handler. On top of that, EVT_CHAR_HOOK...
- Tue Apr 09, 2024 10:10 pm
- Forum: C++ Development
- Topic: Capturing keys
- Replies: 7
- Views: 10273
Re: Capturing keys
Some i expected that you bind all key event types to that handler. Maybe it's the messagebox that messes things up, try something non-intrusive like wxLogDebug for debugging. If you're under Windows and your IDE does not display the wxLogDebug output, use https://learn.microsoft.com/en-us/sysinterna...
- Tue Apr 09, 2024 9:53 pm
- Forum: C++ Development
- Topic: Capturing keys
- Replies: 7
- Views: 10273
Re: Capturing keys
Which events did you bind to this event handler?
I suggest to build and run the "keyboard" sample that comes with wxWidgets.
I suggest to build and run the "keyboard" sample that comes with wxWidgets.
- Mon Apr 08, 2024 8:58 pm
- Forum: Announcements and Discoveries
- Topic: PDF Viewer
- Replies: 3
- Views: 6421
Re: PDF Viewer
wxPDFView probably needs less memory, but now that we have proper webview support on all platform, i just use that to display PDFs.
- Mon Apr 08, 2024 5:25 am
- Forum: C++ Development
- Topic: wxTextCtrl with wxIntegerValidator<T> gives different result for ENTER and button
- Replies: 6
- Views: 2339
Re: wxTextCtrl with wxIntegerValidator<T> gives different result for ENTER and button
It works except when entering 0 into the wxTextCtrl. With starting via button the action routine gets 1, when started with ENTER it gets 0 I can't reproduce this. When i enter nothing, i get the "number is too large" message. Entering "0" is not directly possible as the validato...
- Sun Apr 07, 2024 1:51 pm
- Forum: C++ Development
- Topic: Two queries slowing down things
- Replies: 2
- Views: 9594
Re: Two queries slowing down things
The main issue here is that the changes you made to the gui usually only become visible when the system had an opportunity to process the respective paint events. But that only happens after your event handler is finished. You can force an immediate update by calling Refresh() and Update() on the ch...
- Fri Apr 05, 2024 7:31 pm
- Forum: wxWidgets Development (Russian)
- Topic: wxImage to base64
- Replies: 2
- Views: 6228
Re: wxImage to base64
Save the data into wxMemoryOutputStream instead of a local file.
https://docs.wxwidgets.org/trunk/classw ... tream.html
https://docs.wxwidgets.org/trunk/classw ... tream.html