R: Adding page dynamically does not work on Windows
Gatti Gianluca <[email protected]> Tue, 16 Jun 2026 12:47:23 +0000
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <DU0PR10MB5728EC9CBEE53BCA38C56B0E9EE52@DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.COM> |
--_000_DU0PR10MB5728EC9CBEE53BCA38C56B0E9EE52DU0PR10MB5728EURP_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No, even so it does not work: =E2=80=82=E2=80=82=E2=80=82=E2=80=82_my_dialog->m_auinotebook1->AddPage(new= MyPanel(_my_dialog->m_auinotebook1), ""); What could be wrong? Thank you, =E2=80=82=E2=80=82=E2=80=82=E2=80=82Gianluca ________________________________ Da: [email protected] per conto di Vadim Zeitlin Inviato: Marted=C3=AC, 16 Giugno, 2026 14:33 A: [email protected] Oggetto: Re: Adding page dynamically does not work on Windows On Tue, 16 Jun 2026 12:06:05 +0000 Gatti Gianluca wrote: GG> This is the line of code (I think it is not necessary share all the sou= rce code): Hello, In general it's really best to provide a full, self-contained example reproducing the problem, please see our bug reporting guidelines for detail= s: https://urldefense.com/v3/__https://wxwidgets.org/develop/how-to-re= port-issues/__;!!EAvW5M_HCdSncw!KLEJK37seK_LRM79clpJ6rd2fkeWzXJbbkM1Xz-RXM5= at2ZqwDPToM55L5w8A586KNX--MzV0B0zcWMkT9aSTwuVJrP9rw$ GG> =E2=80=82=E2=80=82=E2=80=82=E2=80=82_my_dialog->m_auinotebook1->AddPage= (new MyPanel(_my_dialog), ""); But in this case this line is indeed enough to show the problem: MyPanel must use wxAuiNotebook as its parent, not the dialog. It's actually strange that using a wrong parent doesn't result in an assert failure, I think it should. GG> As I said before, on Linux (Ubuntu 24) it does work The promise of wxWidgets is that correct code will work on all the supported platforms, it's too difficult to guarantee that wrong code fails in the same way everywhere. Regards, VZ -- TT-Solutions: wxWidgets consultancy and technical support https://urldefense.com/v3/__https://www.tt-solutions.com/__;= !!EAvW5M_HCdSncw!KLEJK37seK_LRM79clpJ6rd2fkeWzXJbbkM1Xz-RXM5at2ZqwDPToM55L5= w8A586KNX--MzV0B0zcWMkT9aSTwvJpIqs3g$ --=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= 0PR10MB5728EC9CBEE53BCA38C56B0E9EE52%40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.= COM. --_000_DU0PR10MB5728EC9CBEE53BCA38C56B0E9EE52DU0PR10MB5728EURP_ 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);"> No, even so it does not work:</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);"> =E2=80=82=E2=80=82=E2=80=82=E2=80=82_my_dialog->m_auinotebook1-><b>Ad= dPage</b>(<b>new</b> MyPanel(_my_dialog->m_auinotebook1), "&qu= ot;);</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);"> What could be wrong?</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);"> <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);"> =E2=80=82=E2=80=82=E2=80=82=E2=80=82Gianluca</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><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> [email protected] per conto di Vadim Zeitlin<br> <b>Inviato:</b> Marted=C3=AC, 16 Giugno, 2026 14:33<br> <b>A:</b> [email protected]<br> <b>Oggetto:</b> Re: Adding page dynamically does not work on Windows <= /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:06:05 +0000 Gatti Gi= anluca wrote:<br> <br> GG> This is the line of code (I think it is not necessary share all the = source code):<br> <br> Hello,<br> <br> In general it's really best to provide a full, self-contained example= <br> reproducing the problem, please see our bug reporting guidelines for detail= s:<br> <br> <a href=3D"https://urldefense.co= m/v3/__https://wxwidgets.org/develop/how-to-report-issues/__;!!EAvW5M_HCdSn= cw!KLEJK37seK_LRM79clpJ6rd2fkeWzXJbbkM1Xz-RXM5at2ZqwDPToM55L5w8A586KNX--MzV= 0B0zcWMkT9aSTwuVJrP9rw$" id=3D"OWA1fe74c15-24a9-463f-06b9-56b63cf54c28" cla= ss=3D"OWAAutoLink" rel=3D"noopener noreferrer" data-auth=3D"NotApplicable"> https://urldefense.com/v3/__https://wxwidgets.org/develop/how-to-report-iss= ues/__;!!EAvW5M_HCdSncw!KLEJK37seK_LRM79clpJ6rd2fkeWzXJbbkM1Xz-RXM5at2ZqwDP= ToM55L5w8A586KNX--MzV0B0zcWMkT9aSTwuVJrP9rw$</a><br> <br> GG> =E2=80=82=E2=80=82=E2=80=82=E2=80=82_my_dialog->m_auinotebook1-&g= t;AddPage(new MyPanel(_my_dialog), "");<br> <br> But in this case this line is indeed enough to show the problem: MyPa= nel<br> must use wxAuiNotebook as its parent, not the dialog. It's actually strange= <br> that using a wrong parent doesn't result in an assert failure, I think it<b= r> should.<br> <br> GG> As I said before, on Linux (Ubuntu 24) it does work<br> <br> The promise of wxWidgets is that correct code will work on all the<br= > supported platforms, it's too difficult to guarantee that wrong code fails<= br> in the same way everywhere.<br> <br> Regards,<br> VZ<br> <br> --<br> TT-Solutions: wxWidgets consultancy and technical support<br> &nb= sp; <a href=3D"https://urldefense.com/v3/__https://www.tt-solutions.c= om/__;!!EAvW5M_HCdSncw!KLEJK37seK_LRM79clpJ6rd2fkeWzXJbbkM1Xz-RXM5at2ZqwDPT= oM55L5w8A586KNX--MzV0B0zcWMkT9aSTwvJpIqs3g$" id=3D"OWA36eaae45-0fe5-54df-c6= 30-9e9f20b64c9f" class=3D"OWAAutoLink" rel=3D"noopener noreferrer" data-aut= h=3D"NotApplicable"> https://urldefense.com/v3/__https://www.tt-solutions.com/__;!!EAvW5M_HCdSnc= w!KLEJK37seK_LRM79clpJ6rd2fkeWzXJbbkM1Xz-RXM5at2ZqwDPToM55L5w8A586KNX--MzV0= B0zcWMkT9aSTwvJpIqs3g$</a><br> </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" 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/DU0PR10MB5728EC9CBEE53BCA38C56B0E9EE52%40DU0PR10MB5728.EURPRD10.PR= OD.OUTLOOK.COM?utm_medium=3Demail&utm_source=3Dfooter">https://groups.googl= e.com/d/msgid/wx-users/DU0PR10MB5728EC9CBEE53BCA38C56B0E9EE52%40DU0PR10MB57= 28.EURPRD10.PROD.OUTLOOK.COM</a>.<br /> --_000_DU0PR10MB5728EC9CBEE53BCA38C56B0E9EE52DU0PR10MB5728EURP_--