Search found 74 matches

by bsenftner
Sat Apr 08, 2017 9:40 pm
Forum: C++ Development
Topic: how to add wxStatusBar to wxPanel?
Replies: 3
Views: 919

how to add wxStatusBar to wxPanel?

In an app I have a containing wxFrame with a statusbar, and inside the wxFrame there is a wxNotebook. The wxNotebook has a wxPanel derived tab/panel/page that in turn contains a dynamic number of sub-wxPanels which each contain a wxToolbar, and two vertically stacked wxGlCanvases. I want to place a ...
by bsenftner
Mon Nov 28, 2016 11:44 pm
Forum: C++ Development
Topic: is there an uninstall setup for wxConfig app settings?
Replies: 1
Views: 401

is there an uninstall setup for wxConfig app settings?

I have a desktop application using wxWidgets 3.0.2 running on Windows with plans to build a Linux version soon. We use the FOSS Inno Setup Compiler to create our Windows installers. We have a series of settings for our application managed with the wxConfig system, which under Windows these configura...
by bsenftner
Fri Nov 18, 2016 10:37 pm
Forum: C++ Development
Topic: change default selection on a ToolBar RadioTool?
Replies: 1
Views: 363

change default selection on a ToolBar RadioTool?

I have some toolbars on various windows with VCR style "Play, Pause, Stop" buttons implemented as a RadioTool. I want a RadioTool because after selection the button remains selected, indicating the state of video playback. (Video playback is not obvious, as video cameras can be delivering blank/blac...
by bsenftner
Fri Nov 18, 2016 9:06 pm
Forum: C++ Development
Topic: What is preferred method to pop a startup error/notify dialog?
Replies: 1
Views: 451

What is preferred method to pop a startup error/notify dialog?

During my typically modern and complex program's startup, data is loaded from the wxConfig system, as well as other locations. Some of this data gets validated, such as directories where read/write data is expected to exist. As application startup proceeds, a notifications string is generated that I...
by bsenftner
Tue Sep 20, 2016 3:42 am
Forum: C++ Development
Topic: Video4Linux
Replies: 6
Views: 1421

Re: Video4Linux

For what its worth: my company produces a video capture / playback application, using wxWidgets, and we use OpenGL for displaying our frames. Very high frames rates are easily handled. We often have 6-8 HD streams on a 4K monitor playing fine, 60 fps.
by bsenftner
Sat Aug 20, 2016 12:17 am
Forum: C++ Development
Topic: difficulties using jwSMTP library with wxWidgets to send emails
Replies: 1
Views: 605

difficulties using jwSMTP library with wxWidgets to send emails

I am developing on Win10 with Visual Studio 2013 Community, wxWidgets version 3.0.1, deploying to Windows and Linux. I am working on an application upgrade that includes a port to wxWidgets (from MFC) to support a new Linux version of the application. The previous version of this application used th...
by bsenftner
Sun Aug 14, 2016 8:13 pm
Forum: C++ Development
Topic: programmatically causing dropdown menu to drop
Replies: 11
Views: 1522

Re: programmatically causing dropdown menu to drop

The working solution is to simply call PopupMenu( wxMenu* ), leaving the position as default - that will pop the menu with its upper left corner at the mouse click location. The other setup described originally is fine, just the contents of the callback was incorrect - no event needed to be issued, ...
by bsenftner
Fri Aug 12, 2016 9:33 pm
Forum: C++ Development
Topic: programmatically causing dropdown menu to drop
Replies: 11
Views: 1522

Re: programmatically causing dropdown menu to drop

I want the event that makes the menu visible. The event is just a notification for the application that the menu will open. It doesn't open the menu. So that approach won't work. Get the pointer to the menu and display it yourself: wxMenu* wxToolBarToolBase::GetDropdownMenu(); Isn't the menu I need...
by bsenftner
Fri Aug 12, 2016 12:36 am
Forum: C++ Development
Topic: programmatically causing dropdown menu to drop
Replies: 11
Views: 1522

Re: programmatically causing dropdown menu to drop

I am using a wMenu, as can be seen in the code I posted originally. I do not want a wxComboBox, or other box. I'm simply trying to display the menu as if the user clicked on the arrow rather than the icon. It looks like I need to send a wxMenuEvent rather than the typical wxCommandEvent that event h...
by bsenftner
Thu Aug 11, 2016 9:05 pm
Forum: C++ Development
Topic: programmatically causing dropdown menu to drop
Replies: 11
Views: 1522

Re: programmatically causing dropdown menu to drop

Just a tad bit more context in your answer and it might be useful. As is, I don't know which object you're talking about to get the GetEventHandler() from, the versions of GetEventHandler() I seem to have access do not have a PostEvent() method, and once I have that I still need some context on the ...
by bsenftner
Thu Aug 11, 2016 4:37 pm
Forum: C++ Development
Topic: programmatically causing dropdown menu to drop
Replies: 11
Views: 1522

Re: programmatically causing dropdown menu to drop

> Try to use wxComboCtrl or wxBitmapComboBox. Neither of those options is what I'm seeking. I want to keep the visual appearance, I just want the dropdown menu to appear when the icon is clicked. That can be accomplished by sending a wxMenuEvent to the wxMenu hosting the dropdown menu, but I do not ...
by bsenftner
Thu Aug 11, 2016 1:11 am
Forum: C++ Development
Topic: programmatically causing dropdown menu to drop
Replies: 11
Views: 1522

programmatically causing dropdown menu to drop

WxWidgets 3.0.2, developing in Visual Studio Community 2013, targeting Windows and Linux I have a wxToolbar, with a tool added that is a "settings icon" with a dropdown menu attached: bsjnk.jpg The tool icon itself does not do anything when clicked, but the dropdown menu appears when the "down arrow...
by bsenftner
Mon Jun 27, 2016 10:39 pm
Forum: C++ Development
Topic: on supporting a "modified" controls state
Replies: 2
Views: 622

on supporting a "modified" controls state

I am wondering if I need to create my own altered versions of the wxControls, or is there some existing means of supporting a slightly altered display for wxSpinCtrls, wxTextCtrls, wxCheckBoxes, and wxButtons? The "slightly altered display" just needs to be some indicator that the user has modified ...
by bsenftner
Tue Jun 21, 2016 9:07 pm
Forum: C++ Development
Topic: Passing values to a DETACHED wxThead
Replies: 3
Views: 875

Re: Passing values to a DETACHED wxThead

I just went through figuring this out myself last week. I suggest you check out: https://wiki.wxwidgets.org/Inter-Thread_and_Inter-Process_communication I ended up modifying the job/queue manager described in the middle of that post. The idea is you have a thread-safe means of creating "jobs" - desc...
by bsenftner
Tue Jun 21, 2016 8:50 pm
Forum: C++ Development
Topic: restoring wxFrame position on app start, an offset is required?
Replies: 5
Views: 1507

Re: restoring wxFrame position on app start, an offset is required?

I think you should set the size and position of the window before you maximize it. It is not clear in my posted code, but I am doing what you suggest. I construct the window at the wxConfig saved size & position. When the user un-maximizes, it does correctly pop to that last non-maximized position....