Search found 74 matches

by bsenftner
Sun Dec 09, 2018 1:36 am
Forum: C++ Development
Topic: Are there tests for alphanumeric but including extended latin unicode?
Replies: 3
Views: 415

Are there tests for alphanumeric but including extended latin unicode?

I have an international application, and I am laying in the unicode handling now. The application has people and place locations in wxStrings, and "people list" names, as well as "location list" names. I would like to restrict these end-user created "names" to be "alphanumeric", plus the ASCII under...
by bsenftner
Mon Nov 12, 2018 8:36 pm
Forum: C++ Development
Topic: if programatically moving/resizings windows, must one send move/size events manually?
Replies: 0
Views: 2030

if programatically moving/resizings windows, must one send move/size events manually?

I have a multi-window application, with the intention of end-users placing windows inside multiple displays attached to the same system. Such users sometimes have rotating displays that switch between portrait and landscape layouts, and users may remove a display between launches of our application....
by bsenftner
Wed Aug 22, 2018 2:57 am
Forum: Platform Related Issues
Topic: Can't locate wxWidgets app with EnumWindows()/EnumDesktopWindows()
Replies: 1
Views: 513

Can't locate wxWidgets app with EnumWindows()/EnumDesktopWindows()

I have a wxWidgets application I want to periodically check is running. I believe the method to do this on Windows is with a Service. I am using a minimally modified version of the "A basic Windows service in C++" sample, located here: https://code.msdn.microsoft.com/windowsapps/CppWindowsService-ca...
by bsenftner
Tue Apr 24, 2018 5:18 pm
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 934

Re: trying to calc column cell clicked in wxListCtrl

The program is not marked as DPI Aware. I could continue here, but I've spent too much time trying to work around this (seemingly odd) limitation of wxListCtrl. I should have used a wxGrid. Rather than start learning about DPI Awareness and pursuing this unsupported feature, I'm just going to bail o...
by bsenftner
Tue Apr 24, 2018 4:41 pm
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 934

Re: trying to calc column cell clicked in wxListCtrl

I think it is GetScreenPosition() returning unexpected values. Now that I am looking at and using the wxDisplay routines, I am getting a better picture of what is going on. http://162.144.4.221/monitor_layout.jpg Using wxDisplay, I am getting these values for the monitor layout shown above: monitor ...
by bsenftner
Tue Apr 24, 2018 6:02 am
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 934

Re: trying to calc column cell clicked in wxListCtrl

This is inside a wxListEvent, the EVT_LIST_ITEM_SELECTED and EVT_LIST_ITEM_ACTIVATED handlers - which do not provide the mouse coordinates. monitor-wise there is a 2K monitor on the left, a 4K monitor in the center, a 1920x1080 on the right, and a 1920x1080 centered above these three. It's a unified...
by bsenftner
Tue Apr 24, 2018 5:38 am
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 934

Re: trying to calc column cell clicked in wxListCtrl

wxWindow::ScreenToClient(...) appears to also be affected by this hidden scaling factor. ScreenToClient( wxGetMousePopsition() ) returns an x coord far to high, over 3000 when I'm expecting a value less than 30.
by bsenftner
Tue Apr 24, 2018 5:31 am
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 934

Re: trying to calc column cell clicked in wxListCtrl

After more research and variation trials, the docs seem to indicate this should work but does not: int CX_VideoStreamListCtrl::GetColumnClicked(wxListEvent& event) { wxPoint raw_click = wxGetMousePosition(); wxPoint listctrl_click = ClientToScreen(raw_click); wxPoint listCtrlPosition = GetScreenPosi...
by bsenftner
Tue Apr 24, 2018 1:35 am
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 934

trying to calc column cell clicked in wxListCtrl

I am working in version 3.0.4 on MSW. Working with a wxListCtrl, I understand that getting the column cell clicked in a wxListCtrl is not supported, and one needs to calculate the column receiving the click from the column widths. However, I can't seem to get that working. I've seen this logic offer...
by bsenftner
Sun Mar 04, 2018 6:12 pm
Forum: C++ Development
Topic: wxRichTextCtrl does not support horizontal scrolling without line wrapping?
Replies: 1
Views: 371

wxRichTextCtrl does not support horizontal scrolling without line wrapping?

I am working with a wxRichTextCtrl, trying to create a Rich Text, read only visual log that does not wrap lines. I am creating it like this: mp_logCtrl = new wxRichTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDLG_UNIT(this, wxSize(width / 2, height*0.75f)), wxTE_READONLY | wxTE_RICH2...
by bsenftner
Sat Sep 02, 2017 1:40 pm
Forum: C++ Development
Topic: current preferred method of executing async sub-processes
Replies: 3
Views: 945

Re: current preferred method of executing async sub-processes

Thanks, you're working example got mine working. I'd been trying variations, and that wxShell launching cmd.exe was an extreme attempt to see if that was needed. The code I posted with commented out examples was abbreviated from more trials.
by bsenftner
Thu Aug 31, 2017 12:42 am
Forum: C++ Development
Topic: current preferred method of executing async sub-processes
Replies: 3
Views: 945

current preferred method of executing async sub-processes

Seems like this should be easy with wxExecute() and/or wxProcess(), but that does not seem to be the case... I have a enterprise software product with a new data exporting facility. One of the exporting features is an ability to use middleware executables in command lines and execute them to complet...
by bsenftner
Thu Jun 01, 2017 12:24 am
Forum: C++ Development
Topic: running wxApp main loop by hand?
Replies: 2
Views: 1967

Re: running wxApp main loop by hand?

My final solution works quite well. I've integrated the C++ REST framework Restbed, which has its own looping main, similar to wxWidget's event loop. https://github.com/Corvusoft/restbed Restbed's looping main is spawning threads to handle incoming REST requests, each in it's own thread. As the REST...
by bsenftner
Fri May 26, 2017 7:45 pm
Forum: C++ Development
Topic: running wxApp main loop by hand?
Replies: 2
Views: 1967

running wxApp main loop by hand?

I have a released, client using wxWidgets based C++ application, deployed to various flavors of linux and windows. We've just upgraded our application to wxWidgets 3.0.3, from 3.0.1, along with the addition of several new features. One of the new features in our application is a REST communications ...
by bsenftner
Tue Apr 11, 2017 6:25 pm
Forum: C++ Development
Topic: how to add wxStatusBar to wxPanel?
Replies: 3
Views: 919

Re: how to add wxStatusBar to wxPanel? [SOLVED]

I ended up simply creating a containing wxFrame whose only purpose is the statusbar: // 'this' is a wxPanel derived class, the below logic is inside the class constructor: mp_statusFrame = new wxFrame( this, ID_VIDEO_STATUSFRAME, _("Status frame") ); // mp_statusBar = new wxStatusBar(this, ID_VIDEO_...