R: R: R: Adding page dynamically does not work on Windows

Gatti Gianluca <[email protected]> Fri, 19 Jun 2026 06:28:02 +0000
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <DU0PR10MB572812FF7B290B369264353E9EE22@DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.COM>
--_000_DU0PR10MB572812FF7B290B369264353E9EE22DU0PR10MB5728EURP_
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank you very much Maarten, the Fit() method solves the problem (on Ubuntu=
 it is not needed...).

(For the other issue you mention: it is just a test, just to give Myframe a=
s the parent of MyDialog...)

Thank you,
Gianluca


________________________________
Da: [email protected] <[email protected]> per conto di Maar=
ten Bent <[email protected]>
Inviato: gioved=C3=AC 18 giugno 2026 20:37
A: [email protected] <[email protected]>
Oggetto: Re: R: R: Adding page dynamically does not work on Windows

Hi, I see two problems. The dialog that is created doesn't have a size, add=
ing _my_dialog->Fit(); shows its contents. Your example creates a MyDialog =
instead of a MyFrame, which results in the app never exiting when closing t=
he dialog. Regards,
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd
Hi, I see two problems.

The dialog that is created doesn't have a size, adding _my_dialog->Fit(); s=
hows its contents.
Your example creates a MyDialog instead of a MyFrame, which results in the =
app never exiting when closing the dialog.

Regards,
Maarten


On 16 Jun 2026 15:21, Gatti Gianluca wrote:
I send you my source code in attachment.
Thank you,
Gianluca


________________________________
Da: [email protected]<mailto:[email protected]> per conto d=
i Vadim Zeitlin
Inviato: Marted=C3=AC, 16 Giugno, 2026 15:06
A: [email protected]<mailto:[email protected]>
Oggetto: Re: R: Adding page dynamically does not work on Windows

On Tue, 16 Jun 2026 12:47:23 +0000 Gatti Gianluca wrote:

GG> No, even so it does not work:
GG>
GG> =E2=80=82=E2=80=82=E2=80=82=E2=80=82_my_dialog->m_auinotebook1->AddPage=
(new MyPanel(_my_dialog->m_auinotebook1), "");
GG>
GG> What could be wrong?

 I don't know, you'd need to make a self-contained example or a small patch
reproducing the problem in the aui sample.

 Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
               https://urldefense.com/v3/__https://www.tt-solutions.com/__;=
!!EAvW5M_HCdSncw!L-nFhZHt89B9Uw1iPcYK2HaMkEMbDrqqinWUmaC27nhxLQqAoa89tmXmuP=
pDTndJJfSo5ah8gXNnv8L6ZNHTbWmqIT5oEw$
--
Please read https://www.wxwidgets.org/support/mlhowto.htm<https://urldefens=
e.com/v3/__https://www.wxwidgets.org/support/mlhowto.htm__;!!EAvW5M_HCdSncw=
!Kj_TKrJS9W_3ha-9s8SQUoQU8K5sATi-XRWzRSm9n6ZozE9tdMHqRoKMP3obBpLah4mh7DORl5=
REP81507o7oPuzhsjn5wBI$> 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 e=
mail to [email protected]<mailto:wx-users+unsubscribe@g=
ooglegroups.com>.
To view this discussion visit https://groups.google.com/d/msgid/wx-users/DU=
0PR10MB5728221DABABFB1A9E1FBF8B9EE52%40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.=
COM<https://urldefense.com/v3/__https://groups.google.com/d/msgid/wx-users/=
DU0PR10MB5728221DABABFB1A9E1FBF8B9EE52*40DU0PR10MB5728.EURPRD10.PROD.OUTLOO=
K.COM?utm_medium=3Demail&utm_source=3Dfooter__;JQ!!EAvW5M_HCdSncw!Kj_TKrJS9=
W_3ha-9s8SQUoQU8K5sATi-XRWzRSm9n6ZozE9tdMHqRoKMP3obBpLah4mh7DORl5REP81507o7=
oPuzhmj86-76$>.

--
Please read https://www.wxwidgets.org/support/mlhowto.htm<https://urldefens=
e.com/v3/__https://www.wxwidgets.org/support/mlhowto.htm__;!!EAvW5M_HCdSncw=
!Kj_TKrJS9W_3ha-9s8SQUoQU8K5sATi-XRWzRSm9n6ZozE9tdMHqRoKMP3obBpLah4mh7DORl5=
REP81507o7oPuzhsjn5wBI$> 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 e=
mail to [email protected]<mailto:wx-users+unsubscribe@g=
ooglegroups.com>.
To view this discussion visit https://groups.google.com/d/msgid/wx-users/50=
6d801c-a0e4-47c3-85f2-465718a73bb2%40gmail.com<https://urldefense.com/v3/__=
https://groups.google.com/d/msgid/wx-users/506d801c-a0e4-47c3-85f2-465718a7=
3bb2*40gmail.com?utm_medium=3Demail&utm_source=3Dfooter__;JQ!!EAvW5M_HCdSnc=
w!Kj_TKrJS9W_3ha-9s8SQUoQU8K5sATi-XRWzRSm9n6ZozE9tdMHqRoKMP3obBpLah4mh7DORl=
5REP81507o7oPuzhmuaNHPT$>.

--=20
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---=20
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 e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/DU=
0PR10MB572812FF7B290B369264353E9EE22%40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.=
COM.

--_000_DU0PR10MB572812FF7B290B369264353E9EE22DU0PR10MB5728EURP_
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
Thank you very much Maarten, the Fit() method solves the problem (on Ubuntu=
 it is not needed...).</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
(For the other issue you mention: it is just a test, just to give Myframe a=
s the parent of MyDialog...)</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
Thank you,</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
Gianluca</div>
<div id=3D"Signature" class=3D"elementToProof">
<div class=3D"elementToProof" style=3D"background-color: rgb(255, 255, 255)=
; margin: 0px;">
<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" style=3D"text-align=
: left; text-indent: 0px; width: 450pt;">
<tbody>
<tr>
<td style=3D"text-align: left; text-indent: 0px; padding: 0cm; width: 0.3pt=
;"></td>
</tr>
</tbody>
</table>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style=3D"display: inline-block; width: 98%;">
<div id=3D"divRplyFwdMsg">
<div style=3D"direction: ltr; font-family: Calibri, sans-serif; font-size: =
11pt; color: rgb(0, 0, 0);">
<b>Da:</b>&nbsp;[email protected] &lt;[email protected]&gt;=
 per conto di Maarten Bent &lt;[email protected]&gt;<br>
<b>Inviato:</b>&nbsp;gioved=C3=AC 18 giugno 2026 20:37<br>
<b>A:</b>&nbsp;[email protected] &lt;[email protected]&gt;<=
br>
<b>Oggetto:</b>&nbsp;Re: R: R: Adding page dynamically does not work on Win=
dows</div>
<div style=3D"direction: ltr;">&nbsp;</div>
</div>
<div style=3D"line-height: 1px; display: none; font-size: 1px; color: rgb(2=
55, 255, 255);">
Hi, I see two problems. The dialog that is created doesn't have a size, add=
ing _my_dialog-&gt;Fit(); shows its contents. Your example creates a MyDial=
og instead of a MyFrame, which results in the app never exiting when closin=
g the dialog. Regards,</div>
<div style=3D"line-height: 1px; display: none; font-size: 1px; color: rgb(2=
55, 255, 255);">
ZjQcmQRYFpfptBannerStart</div>
<div id=3D"x_pfptBannerqh4mn34" style=3D"background-color: rgb(249, 211, 11=
6); margin: 0px 0px 10px; padding: 7px 16px 8px; border-top: 4px solid rgb(=
190, 179, 161); border-radius: 4px; min-width: 200px; display: block;">
<div id=3D"x_pfptBannerqh4mn34" style=3D"background-color: rgb(249, 211, 11=
6); margin: 1px 0px; display: block;">
<div id=3D"x_pfptBannerqh4mn34" style=3D"background-color: rgb(249, 211, 11=
6); display: block;">
<div style=3D"direction: ltr; text-align: left; line-height: 1.29; font-fam=
ily: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
<b>This Message Is From an External Sender</b></div>
</div>
<div id=3D"x_pfptBannerqh4mn34" style=3D"background-color: rgb(249, 211, 11=
6); margin-top: 2px; display: block;">
<div style=3D"direction: ltr; text-align: left; line-height: 1.5; font-fami=
ly: Arial, sans-serif; font-size: 12px; color: rgb(0, 0, 0);">
This message came from outside your organization.</div>
</div>
</div>
<div style=3D"direction: ltr; text-align: left; line-height: 0; display: bl=
ock; font-size: 0.01px;">
&nbsp;</div>
</div>
<div style=3D"line-height: 1px; display: none; font-size: 1px; color: rgb(2=
55, 255, 255);">
ZjQcmQRYFpfptBannerEnd</div>
<div>Hi, I see two problems.<br>
<br>
The dialog that is created doesn't have a size, adding _my_dialog-&gt;Fit()=
; shows its contents.<br>
Your example creates a MyDialog instead of a MyFrame, which results in the =
app never exiting when closing the dialog.<br>
<br>
Regards,<br>
Maarten<br>
<br>
<br>
</div>
<div>On 16 Jun 2026 15:21, Gatti Gianluca wrote:</div>
<blockquote>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I send you my source code in attachment.</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thank you,</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Gianluca</div>
<div><br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style=3D"display: inline-block; width: 98%;">
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
<b>Da:</b>&nbsp;<a href=3D"mailto:[email protected]" id=3D"OWA2d188=
427-a36a-4293-831b-0756d62d2e39" class=3D"x_moz-txt-link-abbreviated OWAAut=
oLink">[email protected]</a>&nbsp;per conto di Vadim Zeitlin<br>
<b>Inviato:</b>&nbsp;Marted=C3=AC, 16 Giugno, 2026 15:06<br>
<b>A:</b>&nbsp;<a href=3D"mailto:[email protected]" id=3D"OWA49661b=
90-c2ea-72f0-d18b-2f827d6a8458" class=3D"x_moz-txt-link-abbreviated OWAAuto=
Link">[email protected]</a><br>
<b>Oggetto:</b>&nbsp;Re: R: Adding page dynamically does not work on Window=
s</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-size: 11pt;">On Tue, 16 Jun 2026 12:47:23 +0000 Gatti Gi=
anluca wrote:<br>
<br>
GG&gt; No, even so it does not work:<br>
GG&gt;<br>
GG&gt; =E2=80=82=E2=80=82=E2=80=82=E2=80=82_my_dialog-&gt;m_auinotebook1-&g=
t;AddPage(new MyPanel(_my_dialog-&gt;m_auinotebook1), &quot;&quot;);<br>
GG&gt;<br>
GG&gt; What could be wrong?<br>
<br>
&nbsp;I don't know, you'd need to make a self-contained example or a small =
patch<br>
reproducing the problem in the aui sample.<br>
<br>
&nbsp;Regards,<br>
VZ<br>
<br>
--<br>
TT-Solutions: wxWidgets consultancy and technical support<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; <a href=3D"https://urldefense.com/v3/__https://www.tt-solutions.c=
om/__;!!EAvW5M_HCdSncw!L-nFhZHt89B9Uw1iPcYK2HaMkEMbDrqqinWUmaC27nhxLQqAoa89=
tmXmuPpDTndJJfSo5ah8gXNnv8L6ZNHTbWmqIT5oEw$" id=3D"OWA5a197dea-7ce6-a1db-56=
0e-367e70c27b76" class=3D"x_OWAAutoLink x_moz-txt-link-freetext" data-auth=
=3D"NotApplicable">
https://urldefense.com/v3/__https://www.tt-solutions.com/__;!!EAvW5M_HCdSnc=
w!L-nFhZHt89B9Uw1iPcYK2HaMkEMbDrqqinWUmaC27nhxLQqAoa89tmXmuPpDTndJJfSo5ah8g=
XNnv8L6ZNHTbWmqIT5oEw$</a></div>
<div>--<br>
Please read <a href=3D"https://urldefense.com/v3/__https://www.wxwidgets.or=
g/support/mlhowto.htm__;!!EAvW5M_HCdSncw!Kj_TKrJS9W_3ha-9s8SQUoQU8K5sATi-XR=
WzRSm9n6ZozE9tdMHqRoKMP3obBpLah4mh7DORl5REP81507o7oPuzhsjn5wBI$" id=3D"OWA9=
6265a35-3b6f-6ecf-e63f-ae588ed7b955" class=3D"x_moz-txt-link-freetext OWAAu=
toLink" data-auth=3D"NotApplicable">
https://www.wxwidgets.org/support/mlhowto.htm</a>&nbsp;before posting.<br>
---<br>
You received this message because you are subscribed to the Google Groups &=
quot;wx-users&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to
<a href=3D"mailto:[email protected]" id=3D"OWAd08c5aff-=
ec1e-9274-98ae-c0d8d7d81533" class=3D"x_moz-txt-link-freetext OWAAutoLink">
[email protected]</a>.<br>
To view this discussion visit <a href=3D"https://urldefense.com/v3/__https:=
//groups.google.com/d/msgid/wx-users/DU0PR10MB5728221DABABFB1A9E1FBF8B9EE52=
*40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.COM?utm_medium=3Demail&amp;utm_sourc=
e=3Dfooter__;JQ!!EAvW5M_HCdSncw!Kj_TKrJS9W_3ha-9s8SQUoQU8K5sATi-XRWzRSm9n6Z=
ozE9tdMHqRoKMP3obBpLah4mh7DORl5REP81507o7oPuzhmj86-76$" id=3D"OWA4b15e2a4-1=
431-7ada-25eb-73c37914b75b" class=3D"OWAAutoLink" data-auth=3D"NotApplicabl=
e">
https://groups.google.com/d/msgid/wx-users/DU0PR10MB5728221DABABFB1A9E1FBF8=
B9EE52%40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.COM</a>.</div>
</blockquote>
<div><br>
</div>
<div>--<br>
Please read <a href=3D"https://urldefense.com/v3/__https://www.wxwidgets.or=
g/support/mlhowto.htm__;!!EAvW5M_HCdSncw!Kj_TKrJS9W_3ha-9s8SQUoQU8K5sATi-XR=
WzRSm9n6ZozE9tdMHqRoKMP3obBpLah4mh7DORl5REP81507o7oPuzhsjn5wBI$" id=3D"OWA4=
9ace1c3-b561-73f9-b170-499ddb72d996" class=3D"OWAAutoLink" data-auth=3D"Not=
Applicable">
https://www.wxwidgets.org/support/mlhowto.htm</a>&nbsp;before posting.<br>
---<br>
You received this message because you are subscribed to the Google Groups &=
quot;wx-users&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to
<a href=3D"mailto:[email protected]" id=3D"OWA1282e4bb-=
027f-b5bd-4cc2-0ea29ef8563c" class=3D"OWAAutoLink">
[email protected]</a>.<br>
To view this discussion visit <a href=3D"https://urldefense.com/v3/__https:=
//groups.google.com/d/msgid/wx-users/506d801c-a0e4-47c3-85f2-465718a73bb2*4=
0gmail.com?utm_medium=3Demail&amp;utm_source=3Dfooter__;JQ!!EAvW5M_HCdSncw!=
Kj_TKrJS9W_3ha-9s8SQUoQU8K5sATi-XRWzRSm9n6ZozE9tdMHqRoKMP3obBpLah4mh7DORl5R=
EP81507o7oPuzhmuaNHPT$" id=3D"OWAd59dc51f-4bd4-2654-93d2-466be2eb6f31" clas=
s=3D"OWAAutoLink" data-auth=3D"NotApplicable">
https://groups.google.com/d/msgid/wx-users/506d801c-a0e4-47c3-85f2-465718a7=
3bb2%40gmail.com</a>.</div>
</body>
</html>

<p></p>

-- <br />
Please read <a href=3D"https://www.wxwidgets.org/support/mlhowto.htm">https=
://www.wxwidgets.org/support/mlhowto.htm</a> before posting.<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;wx-users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wx-users+u=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
wx-users/DU0PR10MB572812FF7B290B369264353E9EE22%40DU0PR10MB5728.EURPRD10.PR=
OD.OUTLOOK.COM?utm_medium=3Demail&utm_source=3Dfooter">https://groups.googl=
e.com/d/msgid/wx-users/DU0PR10MB572812FF7B290B369264353E9EE22%40DU0PR10MB57=
28.EURPRD10.PROD.OUTLOOK.COM</a>.<br />

--_000_DU0PR10MB572812FF7B290B369264353E9EE22DU0PR10MB5728EURP_--