Search found 19133 matches
- Tue Apr 02, 2024 8:25 am
- Forum: Platform Related Issues
- Topic: How to enable GPU acceleration when calling the wxWidgets library on a Linux system.
- Replies: 1
- Views: 3899
Re: How to enable GPU acceleration when calling the wxWidgets library on a Linux system.
wxWidgets just uses the underlying graphics api on the particular platform, that would be Cairo under GTK. There is nothing inside wxWidgets that controls whether hardware acceleration is used. Depending on what you need to render, using OpenGL might give you a better chance to get hardware accelera...
- Tue Apr 02, 2024 7:27 am
- Forum: C++ Development
- Topic: ComboCtrl and ComboPopup focuses can't set at the same time
- Replies: 43
- Views: 26750
Re: ComboCtrl and ComboPopup focuses can't set at the same time
Is there any way to close wxpopupwindow? I can able to show the window using Show() but can't able to close the wxpopupwindow. I have tried Show(false), Close(), Destroy(). But none of them worked. Can you suggest any way to close wxpopupwindow? As wxPopupWindow is still a wxWindow, any of those sh...
- Mon Apr 01, 2024 6:11 pm
- Forum: C++ Development
- Topic: wxLogWarning send to Toplevel window
- Replies: 9
- Views: 4510
Re: wxLogWarning send to Toplevel window
BTW: This here is a user forum. If you want to see changes in the wx sources, please head to https://github.com/wxWidgets/wxWidgets and make a pull request, or post at https://groups.google.com/g/wx-dev to discuss your changes first.
- Mon Apr 01, 2024 4:23 pm
- Forum: C++ Development
- Topic: wxLogWarning send to Toplevel window
- Replies: 9
- Views: 4510
Re: wxLogWarning send to Toplevel window
The new function txGetTopLevelWindow() uses IsIconic(win->GetHWND()) which is probably MSW only. Maybe you can add some code in wxWindow to make it universal for other engines. wxTopLevelWindow::IsIconized() ? https://docs.wxwidgets.org/trunk/classwx_top_level_window.html#a558559389a38bbba4333c4d6d...
- Mon Apr 01, 2024 2:16 pm
- Forum: C++ Development
- Topic: ComboCtrl and ComboPopup focuses can't set at the same time
- Replies: 43
- Views: 26750
Re: ComboCtrl and ComboPopup focuses can't set at the same time
You can change the size and position of the popup window at any time using SetSize(x, y, w, h). The coordinates are relative to the parent window, or screen coordinates if there is no parent. So, depending on what the parents of the ComboCtrl and the wxpopupwindow are, you may have to convert the co...
- Mon Apr 01, 2024 12:01 am
- Forum: C++ Development
- Topic: Binary data in wxString to ASCII
- Replies: 9
- Views: 4383
Re: Binary data in wxString to ASCII
This looks to me like ascii_text can contain 0-bytes. You'll need to convert them to something else, e.g. '.', for the display. And it seems unnecessarily complicated to first create a hex string, and then parse that string again for the ascii version. Both could be created in the same loop more eas...
- Sun Mar 31, 2024 9:16 pm
- Forum: C++ Development
- Topic: Binary data in wxString to ASCII
- Replies: 9
- Views: 4383
Re: Binary data in wxString to ASCII
Using From8BitData should have worked.
Please post the complete code from reading the data from the registry to showing it on screen.
Please post the complete code from reading the data from the registry to showing it on screen.
- Sun Mar 31, 2024 9:13 pm
- Forum: C++ Development
- Topic: wxLogWarning send to Toplevel window
- Replies: 9
- Views: 4510
Re: wxLogWarning send to Toplevel window
I want just a single warning be shown modal centered above the top window which is unfocused and inactive. You were talking about wxLog all the time, so i'm a little confused now. This shows a message dialog on top of a wxFrame that is wxSTAY_ON_TOP. Is that what you want? #include <wx/wx.h> class ...
- Sun Mar 31, 2024 11:05 am
- Forum: C++ Development
- Topic: Easiest method to bind ENTER key to the action method/func for a button
- Replies: 8
- Views: 16223
- Sun Mar 31, 2024 12:13 am
- Forum: C++ Development
- Topic: Binary data in wxString to ASCII
- Replies: 9
- Views: 4383
Re: Binary data in wxString to ASCII
Yes, that's it. But I have already managed that. I just can't convert this string to a wxString. I always get an empty string when I show the wxMessageBox. Please show how you convert the data to wxString. I have another problem: I'm trying to get rid of the spaces in the string. I have tried diffe...
- Sat Mar 30, 2024 11:51 pm
- Forum: C++ Development
- Topic: wxLogWarning send to Toplevel window
- Replies: 9
- Views: 4510
Re: wxLogWarning send to Toplevel window
If you create a wxLogWindow with the "wxSTAY_ON_TOP" frame as parent, i would expect it to be in the foreground. But i haven't tested it. https://docs.wxwidgets.org/trunk/classw ... indow.html
- Sat Mar 30, 2024 12:26 pm
- Forum: C++ Development
- Topic: Binary data in wxString to ASCII
- Replies: 9
- Views: 4383
Re: Binary data in wxString to ASCII
So on the left and the middle there are only numbers and / or letters. I thought that this is binary or hexadecimal. The left column just displays an offset (in hexadecimal), indicating that every line shows 8 bytes of data. The center column shows the hexadecimal values of the 8 bytes. In the righ...
- Sat Mar 30, 2024 7:17 am
- Forum: C++ Development
- Topic: Binary data in wxString to ASCII
- Replies: 9
- Views: 4383
Re: Binary data in wxString to ASCII
That doesn't look like a string to me, and i doubt that a string value would be stored as REG_BINARY. Can you give an example key?
- Fri Mar 29, 2024 6:14 pm
- Forum: C++ Development
- Topic: wxLogWarning send to Toplevel window
- Replies: 9
- Views: 4510
Re: wxLogWarning send to Toplevel window
Did you try wxLogMessage? If that doesn't help, please explain in more detail what you want to achieve, what you tried, and what didn't work.
- Thu Mar 28, 2024 8:55 pm
- Forum: C++ Development
- Topic: Simple serial comms for beginner.
- Replies: 7
- Views: 4132
Re: Simple serial comms for beginner.
This looks exactly like what you need.
I can't help with the serial part though. I don't think i even have any device i could use for testing.