Popup windows don't receive mouse messages when created from Wx::Dialog parents.

Ian Macdonald <[email protected]> Thu, 11 Aug 2016 01:34:15 +0000
Newsgroups gmane.comp.lang.perl.wxperl
Message-ID <73F0C3F8C43DBF48946AEC0F73B58B287AFC13D8@VICARMEXDB01.lfxau.linfox.com>
--_000_73F0C3F8C43DBF48946AEC0F73B58B287AFC13D8VICARMEXDB01lfx_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I've got a problem pretty much as stated in the subject. By "Popup windows"=
, I mean classes derived from Wx::PopupWindow.

I've got a couple of standard classes including a calendar and predictive t=
ext list that popup automatically from Wx::TextCtrl windows when certain ke=
ystrokes are pressed. The popup window then handles keyboard and mouse even=
ts until dismissed.

When the TextCtrl windows are placed on normal windows, everything works fi=
ne.

When they're placed on Wx::Dialog windows, the popup appears normally and k=
eyboard handling is fine but no mouse events whatsoever are received.

Creating a complete example would be kind of lengthy; I'm hoping someone mi=
ght have seen this previously and be able to say "Fix it like this" or even=
 "Yep, you're boned".

Big, big caveat; we're running on wx 2.8.12. (Yes, I know, and I'm trying t=
o get us moved up.) OS is Ubuntu 14.04.

Thanks for any help.



Ian Macdonald
Systems Software Architect
Armaguard
Melbourne, Australia

WARNING: This email and any attachments may be confidential, subject to cop=
yright and subject to legal professional privilege. If you have received th=
is email in error, please notify the sender and permanently delete the emai=
l. Linfox Australia Pty Ltd and its related companies do not warrant that t=
his email and any attachments are free of errors, viruses or tampering by t=
hird parties, and will not be responsible for loss or damage resulting (eit=
her directly or indirectly) from any such error, virus or tampering. Any pe=
rsonal information in this email must be handled in accordance with the Aus=
tralian Privacy Act 1988 (Cth) or privacy laws in the respective countries.=
 If this is a commercial email within the meaning of the Spam Act, you may =
inform us using contact details at www.linfox.com

--_000_73F0C3F8C43DBF48946AEC0F73B58B287AFC13D8VICARMEXDB01lfx_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-AU" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I&#8217;ve got a problem pretty much as stated in th=
e subject. By &#8220;Popup windows&#8221;, I mean classes derived from Wx::=
PopupWindow.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I&#8217;ve got a couple of standard classes includin=
g a calendar and predictive text list that popup automatically from Wx::Tex=
tCtrl windows when certain keystrokes are pressed. The popup window then ha=
ndles keyboard and mouse events until dismissed.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">When the TextCtrl windows are placed on normal windo=
ws, everything works fine.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">When they&#8217;re placed on Wx::Dialog windows, the=
 popup appears normally and keyboard handling is fine but no mouse events w=
hatsoever are received.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Creating a complete example would be kind of lengthy=
; I&#8217;m hoping someone might have seen this previously and be able to s=
ay &#8220;Fix it like this&#8221; or even &#8220;Yep, you&#8217;re boned&#8=
221;.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Big, big caveat; we&#8217;re running on wx 2.8.12. (=
Yes, I know, and I&#8217;m trying to get us moved up.) OS is Ubuntu 14.04.<=
o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Thanks for any help.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><b><span style=3D"mso-fareast-language:EN-AU"><o:p>&=
nbsp;</o:p></span></b></p>
<p class=3D"MsoNormal"><b><span style=3D"mso-fareast-language:EN-AU"><o:p>&=
nbsp;</o:p></span></b></p>
<p class=3D"MsoNormal"><b><span style=3D"mso-fareast-language:EN-AU">Ian Ma=
cdonald<o:p></o:p></span></b></p>
<p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-AU">Systems S=
oftware Architect<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-AU">Armaguard=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-AU">Melbourne=
, Australia<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
WARNING: This email and any attachments may be confidential, subject to cop=
yright and subject to legal professional privilege. If you have received th=
is email in error, please notify the sender and permanently delete the emai=
l. Linfox Australia Pty Ltd and
 its related companies do not warrant that this email and any attachments a=
re free of errors, viruses or tampering by third parties, and will not be r=
esponsible for loss or damage resulting (either directly or indirectly) fro=
m any such error, virus or tampering.
 Any personal information in this email must be handled in accordance with =
the Australian Privacy Act 1988 (Cth) or privacy laws in the respective cou=
ntries. If this is a commercial email within the meaning of the Spam Act, y=
ou may inform us using contact details
 at www.linfox.com
</body>
</html>

--_000_73F0C3F8C43DBF48946AEC0F73B58B287AFC13D8VICARMEXDB01lfx_--