Search found 12 matches

by ggbutcher
Fri May 18, 2018 12:05 am
Forum: C++ Development
Topic: Filtered wxListBox Problem with WxWidgets-3.1.1
Replies: 3
Views: 1227

Re: Filtered wxListBox Problem with WxWidgets-3.1.1

Well, came back home from work with the intent to duplicate the problem, and now I can't. I thought it'd be Win32 specific, but that seems to be working now, both wxWidgets-3.1.0 and 3.1.1.

Thanks for investigating, and enjoy the sub-class...!
by ggbutcher
Thu May 17, 2018 3:26 am
Forum: C++ Development
Topic: Filtered wxListBox Problem with WxWidgets-3.1.1
Replies: 3
Views: 1227

Filtered wxListBox Problem with WxWidgets-3.1.1

For completeness, I searched first, only found this thread: https://forums.wxwidgets.org/viewtopic.php?f=1&t=19997&hilit=filtered+wxListBox I subclassed wxListBox to do just this, filter the list based on a string, list pares down to just those entries that contain the string. It behaves fine in wxW...
by ggbutcher
Thu May 17, 2018 3:13 am
Forum: Component Writing
Topic: wxSlider with two thumbs
Replies: 10
Views: 4013

Re: wxSlider with two thumbs

I wrote one to implement a black/white point setter for an image processing program. You can find it here:

https://github.com/butcherg/rawproc/blob/master/src/

Look for myDoubleSlider.cpp, my DoubleSlider.h
by ggbutcher
Tue Dec 26, 2017 5:53 am
Forum: Compiler / Linking / IDE Related
Topic: how to cross-compile the wxWidgets in linux
Replies: 2
Views: 787

Re: how to cross-compile the wxWidgets in linux

In Ubuntu with mingw-w64 installed, I compile 3.1.0 like this: 1. cd to the wxWidgets-3.1.0 top directory. 2. mkdir build-win, cd build-win 3. ../configure --disable-debug_flag --disable-shared --host=x86_64-w64-mingw32 --build=x86_64-linux-gnu 4. make I use it in-place using the build-win/wx-config...
by ggbutcher
Fri Aug 25, 2017 3:18 am
Forum: Platform Related Issues
Topic: wxAUI with GTK Problem
Replies: 9
Views: 1185

Re: wxAUI with GTK Problem

Turns out I had one more Refresh problem, manifested itself in wxAUI not updating after docking a pane. Turns out I was calling a function in a wxDC render routine that called Refresh(). To further vex me, the call was in an if statement, so it didn't happen all the time. Lesson: Windows is much mor...
by ggbutcher
Thu Aug 17, 2017 4:19 am
Forum: Platform Related Issues
Topic: wxAUI with GTK Problem
Replies: 9
Views: 1185

Re: wxAUI with GTK Problem

I cobbled together the minimal example, with the intent to post it. However, just got carried away and incrementally re-added pane elements until I found the offender, PicPanel, which displays the image being worked. I'm just a little sheepish to report that my problem was liberal over-use of Update...
by ggbutcher
Sat Aug 12, 2017 3:37 am
Forum: Component Writing
Topic: custom wxSlider
Replies: 2
Views: 1430

Re: custom wxSlider

I want to write a custom wxSlider to use as a Color Slider, where we can set color to the bar of the slider. But I dont have an idea where to start. please help Thanks. masudhika So, to make sure I understand the problem, you want a slider that will pick a color from a range of colors. I messed aro...
by ggbutcher
Sat Aug 12, 2017 3:15 am
Forum: Platform Related Issues
Topic: wxAUI with GTK Problem
Replies: 9
Views: 1185

Re: wxAUI with GTK Problem

I just had a short look into the code for the pic and histogram panel. There is at least one thing you need to change, the size event handlers. void PicPanel::OnSize(wxSizeEvent& event) { Refresh(); } If you catch the size event, in 99% of all cases you need to call event.Skip(), so that the defaul...
by ggbutcher
Sat Aug 12, 2017 12:38 am
Forum: Platform Related Issues
Topic: wxAUI with GTK Problem
Replies: 9
Views: 1185

Re: wxAUI with GTK Problem

I've come to the following realizations in using wxWidgets and Linux/GTK: 1. GTK2 has wxWidgets event-handling issues. 2. GTK3 doesn't have the GTK2 event-handling issues, but it has wxAUI initialization issues. It'll occasionally crash on startup, somewhere in the wxAUI::SetManagedWindow call. The ...
by ggbutcher
Fri Aug 11, 2017 2:30 am
Forum: Platform Related Issues
Topic: wxAUI with GTK Problem
Replies: 9
Views: 1185

Re: wxAUI with GTK Problem

Okay, I did a wxBoxSizer replacement of wxAUI, and it still behaved the same way. Now, I just finished linking with gtk3, and the behavior is much improved. The tool panels paint when created, and the gamma wxTextCtrl updates at keystrokes, not when the mouse moves somewhere else. Problem solved. We...
by ggbutcher
Thu Aug 10, 2017 3:43 am
Forum: Platform Related Issues
Topic: wxAUI with GTK Problem
Replies: 9
Views: 1185

Re: wxAUI with GTK Problem

I can't help directly, but it would be interesting to know if wxAUI is really a part of the problem. Could you replace wxAUI with a sizer-based layout temporarily to check if the problem is still there? Not there yet, but about to, see below. ...its parameters panel doesn't paint until I move the m...
by ggbutcher
Wed Aug 09, 2017 1:50 am
Forum: Platform Related Issues
Topic: wxAUI with GTK Problem
Replies: 9
Views: 1185

wxAUI with GTK Problem

I'm using wxWidgets 3.1 to write a raw image processor. I have a 4-pane wxAUI layout, the main pane for the image, and three panes in a Left Dock: 1) wxTreeCtrl for the image operations, 2) a wxPanel-based histogram graphic drawn with wxDC, and 3) a blank wxPanel for image tool parameters. #3 is pop...