Search found 19132 matches

by doublemax
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: 26609

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...
by doublemax
Mon Apr 01, 2024 6:11 pm
Forum: C++ Development
Topic: wxLogWarning send to Toplevel window
Replies: 9
Views: 4504

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.
by doublemax
Mon Apr 01, 2024 4:23 pm
Forum: C++ Development
Topic: wxLogWarning send to Toplevel window
Replies: 9
Views: 4504

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...
by doublemax
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: 26609

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...
by doublemax
Mon Apr 01, 2024 12:01 am
Forum: C++ Development
Topic: Binary data in wxString to ASCII
Replies: 9
Views: 4377

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...
by doublemax
Sun Mar 31, 2024 9:16 pm
Forum: C++ Development
Topic: Binary data in wxString to ASCII
Replies: 9
Views: 4377

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.
by doublemax
Sun Mar 31, 2024 9:13 pm
Forum: C++ Development
Topic: wxLogWarning send to Toplevel window
Replies: 9
Views: 4504

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 ...
by doublemax
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: 16215

Re: Easiest method to bind ENTER key to the action method/func for a button

ql_freak wrote: Sun Mar 31, 2024 1:06 am Unfortunately a "Like" is missing here.
If there is any post that answered your question, you can "accept" the answer with the checkmark.
by doublemax
Sun Mar 31, 2024 12:13 am
Forum: C++ Development
Topic: Binary data in wxString to ASCII
Replies: 9
Views: 4377

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...
by doublemax
Sat Mar 30, 2024 11:51 pm
Forum: C++ Development
Topic: wxLogWarning send to Toplevel window
Replies: 9
Views: 4504

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
by doublemax
Sat Mar 30, 2024 12:26 pm
Forum: C++ Development
Topic: Binary data in wxString to ASCII
Replies: 9
Views: 4377

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...
by doublemax
Sat Mar 30, 2024 7:17 am
Forum: C++ Development
Topic: Binary data in wxString to ASCII
Replies: 9
Views: 4377

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?
by doublemax
Fri Mar 29, 2024 6:14 pm
Forum: C++ Development
Topic: wxLogWarning send to Toplevel window
Replies: 9
Views: 4504

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.
by doublemax
Thu Mar 28, 2024 8:55 pm
Forum: C++ Development
Topic: Simple serial comms for beginner.
Replies: 7
Views: 4124

Re: Simple serial comms for beginner.

djsbriscoe wrote: Thu Mar 28, 2024 11:00 am Also found this

https://github.com/yan9a/serial
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.
by doublemax
Thu Mar 28, 2024 4:20 pm
Forum: C++ Development
Topic: Simple serial comms for beginner.
Replies: 7
Views: 4124

Re: Simple serial comms for beginner.

djsbriscoe wrote: Thu Mar 28, 2024 9:14 am In the absence of an example of using Boost asio with wxWidgets could a console mode example work?
There is really nothing special to do. You can add the boost code to any working wxWidgets sample/code. What part are you having problems with?