Re: wxDialog loses focus at show

"[email protected]" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi,

While debugging my application I have noticed the MouseMove events for the 
main window are still called even if there is another window shown over 
with ShowModal().

I have avoided unwanted behaviour by calling Freeze (before the ShowModal() 
call) for the main window ... 

I do not know when this "bug/behavior" was introduced.

I currently tested it for MacOS only.

best regards,
Mihai

On Thursday 15 June 2023 at 22:02:02 UTC+3 Vadim Zeitlin wrote:

> On Thu, 15 Jun 2023 11:48:14 -0700 (PDT) Сергей Коныгин wrote:
>
> СК> Recently I noticed that my dialog windows have no focus after calling 
> СК> ShowModal(). Therefore I need to click the left mouse button in order 
> to 
> СК> activate window. There are no visible problems except one more mouse 
> СК> clicking. Probably this strangeness appears since version 3.2.2.1.
> СК> I have no idea how to solve this problem.
>
> Me neither, so I can just recommend the usual:
>
> 1. Please try to reproduce the problem with minimal changes to the dialogs
> sample (which already has all sorts of dialogs).
> 2. If this worked before, please try to run git-bisect to find the commit
> in which is stopped working.
>
> If you can do at least one of the above, please open an issue for this
> problem and attach the diff to the sample (for (1)) or mention the commit
> you found (for (2)) and, of course, in any case please provide your
> platform details, i.e. at the very least which OS do you use.
>
> Thanks,
> VZ
>
> -- 
> TT-Solutions: wxWidgets consultancy and technical support
> http://www.tt-solutions.com/
>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/abcd697c-bfbb-4466-ae00-796b0872421fn%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.