Re: wxDialog loses focus at show

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

The worst part of this problem is that even after calling wxMessageBox, the 
mouse move events are still generated for the window behind it.
So, I had to unbind all mouse move messages before calling ShowModal and 
wxMessageBox and then to bind them again.

This problem appears only on MacOS. I have not noticed it in the older 
versions of wxWidgets.

best regards,
Mihai

On Friday 24 May 2024 at 18:08:26 UTC+3 [email protected] wrote:

> Hi,
>
> I just tested it on Windows, and the problem is not manifesting.
> So, it is specific for MacOS.
> The dialog shown with ShowModal() does not get focus if I do not click on 
> it. Because of that, mouse events (like mouse move) are still generated for 
> window behind it ...
>
> Mihai
>
>
> On Friday 24 May 2024 at 15:40:06 UTC+3 [email protected] wrote:
>
>> 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/e7dedcfb-b4a4-4d64-8ebc-e1af7ace26cen%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.