Search found 99 matches

by heinermueller
Fri Feb 23, 2024 11:28 am
Forum: C++ Development
Topic: wxFrame Hide() is ignored
Replies: 7
Views: 281

Re: wxFrame Hide() is ignored - Solved

I assume this is different than this https://github.com/wxWidgets/wxWidgets/issues/23997#issuecomment-1779774296 When i create the frame with old: wxNO_BORDER|wxFRAME_NO_TASKBAR -> does not Hide() new: wxNO_BORDER|wxFRAME_TOOL_WINDOW -> does Hide() as expected Maybe it is related to issue 23997 as ...
by heinermueller
Thu Feb 22, 2024 7:49 pm
Forum: C++ Development
Topic: wxFrame Hide() is ignored
Replies: 7
Views: 281

Re: wxFrame Hide() is ignored

It's safe to assume that Hide() always works, so there must be something else going on. Show more code in context. Hi doublemax, the code is literally as simple as void proxy_monitor::draw() { if (flash_window->decrease_flash_frame_count() == 0) { flash_window->Hide(); } } it is a 'game' - like app...
by heinermueller
Thu Feb 22, 2024 7:33 pm
Forum: C++ Development
Topic: wxFrame Hide() is ignored
Replies: 7
Views: 281

Re: wxFrame Hide() is ignored

A wxFrame is not meant to be hidden. If you wish to map or withdraw the window, do that with the frame’s parent. If you wish to show or hide the window’s content, place everything in a wxPanel child of the frame, and show/hide that. Sorry, i do not really understand - my application windows are der...
by heinermueller
Thu Feb 22, 2024 4:19 pm
Forum: C++ Development
Topic: wxFrame Hide() is ignored
Replies: 7
Views: 281

wxFrame Hide() is ignored

Hi all, i have an application wx3.2 with several top level windows (wxFrame with wxGlCanvas in client area) running on Win10 and from software i call myframe->Show() and the frame always shows, but when i call myframe->Hide() or myframe->Show(false) it is not handled. For testing i created a handler...
by heinermueller
Sun May 14, 2023 6:49 pm
Forum: Platform Related Issues
Topic: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
Replies: 8
Views: 2613

Re: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio

Yes, the reason is using a secondary thread for uploading data, which is quite common and recommended. Actually it is the only real-world use for a shared context: resource creation. Right now it is (almost) impossible to create such a shared context under linux using a wxGLContext.
by heinermueller
Sun May 14, 2023 10:35 am
Forum: Platform Related Issues
Topic: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
Replies: 8
Views: 2613

Re: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio

Hi Manolo, yes, that is a good idea, i will report that. Actually i have an API suggestion, regarding secondary upload context under linux. wxglcontext requires a wxglcanvas to SetCurrent(). egl offers to set the context current with EGL_NO_SURFACE extra for this case, so users do not have to creat...
by heinermueller
Thu May 11, 2023 10:56 am
Forum: Platform Related Issues
Topic: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
Replies: 8
Views: 2613

Re: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio

After some testing i found out that the events are routed correcty but the events in the main app are queued up while the menu is open. I think there is an acceptable solution based on Manolos input regarding the wxTimer. A timer is added to the wxFrame. Menu open and close events are caught EVT_MEN...
by heinermueller
Tue May 09, 2023 8:41 am
Forum: Platform Related Issues
Topic: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
Replies: 8
Views: 2613

Re: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio

Hi Manolo, thank you for your answer. Please check the (wait..) part in the pseudo code. There we wait for the perfect time (and condition) to swap. We do not flood the event queue with paint events. When interested, more info about that topic (proper animation timing is quite challenging) here http...
by heinermueller
Mon May 08, 2023 1:55 pm
Forum: Platform Related Issues
Topic: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
Replies: 8
Views: 2613

wxMenuBar blocks events / wxWidgets 3.2.0, visual studio

Hi All, i have a OpenGL canvas that is inside a wxFrame. To have fluent animations, i send custom update events from a timer thread to the canvas DECLARE_LOCAL_EVENT_TYPE(wxEVT_MMM_UPDATEFRAME, wxID_ANY) DEFINE_EVENT_TYPE(wxEVT_MMM_UPDATEFRAME) ... EVT_COMMAND(wxID_ANY, wxEVT_MMM_UPDATEFRAME, mmmGLC...
by heinermueller
Tue Feb 07, 2023 7:52 am
Forum: Platform Related Issues
Topic: wxSplashScreen delayed transparency
Replies: 19
Views: 2034

Re: wxSplashScreen delayed transparency

The issue is reported here:
https://github.com/wxWidgets/wxWidgets/issues/23232

Thanks for your support! :D
by heinermueller
Mon Feb 06, 2023 11:01 pm
Forum: Platform Related Issues
Topic: wxSplashScreen delayed transparency
Replies: 19
Views: 2034

Re: wxSplashScreen delayed transparency

a small fix could be $ git diff diff --git a/include/wx/generic/splash.h b/include/wx/generic/splash.h index 58a0add..a5466ae 100755 --- a/include/wx/generic/splash.h +++ b/include/wx/generic/splash.h @@ -25,6 +25,7 @@ #define wxSPLASH_CENTRE_ON_SCREEN 0x02 #define wxSPLASH_NO_CENTRE 0x00 #define wx...
by heinermueller
Mon Feb 06, 2023 3:35 pm
Forum: Platform Related Issues
Topic: wxSplashScreen delayed transparency
Replies: 19
Views: 2034

Re: wxSplashScreen delayed transparency

Ok, i will do that. Maybe a good description and a link to this thread?
by heinermueller
Mon Feb 06, 2023 8:22 am
Forum: Platform Related Issues
Topic: wxSplashScreen delayed transparency
Replies: 19
Views: 2034

Re: wxSplashScreen delayed transparency

ONEEYEMAN wrote: Sat Feb 04, 2023 4:31 pm Hi,
Or report it as an issue on wxWidgets GitHub repo.

Thank you.
Sure, i can report this. "Delayed splash transparency when using complex shape" - does this headline describe the problem?
by heinermueller
Mon Feb 06, 2023 8:20 am
Forum: Platform Related Issues
Topic: wxSplashScreen delayed transparency
Replies: 19
Views: 2034

Re: wxSplashScreen delayed transparency

doublemax wrote: Sat Feb 04, 2023 2:35 pm At this point i would just copy the whole wxSplashScreen code and create my own class from it.
Yes, i think i will give this a try!
by heinermueller
Sat Feb 04, 2023 2:27 pm
Forum: Platform Related Issues
Topic: wxSplashScreen delayed transparency
Replies: 19
Views: 2034

Re: wxSplashScreen delayed transparency

I would try to create it with size (0,0) (or an off-screen position), then SetShape(), then set actual size ( or position) yes, that was my next idea also, but then i went into the splash source and saw, that pos and size is not passed to the wxFrame ctor: /* Note that unless we pass a non-default ...