issue with wxFilePickerCtrl

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
User avatar
papillon68
Earned some good credits
Earned some good credits
Posts: 118
Joined: Tue Nov 06, 2007 11:19 pm

issue with wxFilePickerCtrl

Post by papillon68 »

Hello, I'm developing a Windows based application, based on latest wxWidgets libraries.
The interface is simple: a left panel with controls, and a right panel containing a wxGLCanvas.
In the left panel I have a wxFilePickerCtrl widget, I click it and the file browser dialog comes up, overlapping the opengl canvas: at this point, if I click the files in the browser dialog, those clicks are taken into account also by the opengl canvas. So the funny thing that happens is that after I selected one or more files in the browser dialog, some points are painted in the opengl canvas (a behaviour which I obviously don't want).
I tried disabling my opengl paint routines when the wxFilePickerCtrl wxEVT_FILEPICKER_CHANGED event comes up but it's too late at that point and doesn't fix things.
So I tried connecting the wxEVT_COMMAND_TOOL_CLICKED but it doesn't fire at all (and that's odd, shouldn't it be inherited?).
So I'm out of option, any suggestion is greatly appreciated. If you need screenshots to understand better the issue let me know...
Windows 10, MS VC++ 2019 (vc142), WxWidgets 3.14
Designed with WxWidgets: https://www.facebook.com/clorofillaApp
Post Reply