Adding page dynamically does not work on Windows
Gatti Gianluca <[email protected]> Tue, 16 Jun 2026 12:06:05 +0000
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <DU0PR10MB572810F0BD45DFB97C578D0C9EE52@DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.COM> |
--_000_DU0PR10MB572810F0BD45DFB97C578D0C9EE52DU0PR10MB5728EURP_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I have a problem adding dynamically a page (a Panel) on a notebook (a wxAui= Notebook): on Linux it does work correctly, while on Windows does not work.= It does not show the page (with its internal widgets) I added. This is the line of code (I think it is not necessary share all the source = code): =E2=80=82=E2=80=82=E2=80=82=E2=80=82_my_dialog->m_auinotebook1->AddPage(new= MyPanel(_my_dialog), ""); I tried whith wxWidgets version 3.3.2 and 3.2.10. The compiler I used is GCC (with Mingw on Windows). As I said before, on Linux (Ubuntu 24) it does work, therefore I can not un= derstand the problem. Thank you in advance for your suggestions. =E2=80=82=E2=80=82=E2=80=82=E2=80=82Gianluca Gatti --=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= 0PR10MB572810F0BD45DFB97C578D0C9EE52%40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.= COM. --_000_DU0PR10MB572810F0BD45DFB97C578D0C9EE52DU0PR10MB5728EURP_ 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"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> Hello,</div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> <br> </div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> I have a problem adding dynamically a page (a Panel) on a notebook (a wxAui= Notebook): on Linux it does work correctly, while on Windows does not work.= It does not show the page (with its internal widgets) I added.</div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> <br> </div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> This is the line of code (I think it is not necessary share all the source = code):</div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> <br> </div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: 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), "");</div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> <br> </div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> I tried whith wxWidgets version 3.3.2 and 3.2.10.</div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> The compiler I used is GCC (with Mingw on Windows).</div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> <br> </div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> As I said before, on Linux (Ubuntu 24) it does work, therefore I can not un= derstand the problem.</div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> <br> </div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> Thank you in advance for your suggestions.</div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> <br> </div> <div class=3D"elementToProof" style=3D"text-align: left; text-indent: 0px; = background-color: rgb(255, 255, 255); margin: 0px; font-family: Aptos, Apto= s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s= ize: 11pt; color: rgb(0, 0, 0);"> =E2=80=82=E2=80=82=E2=80=82=E2=80=82Gianluca Gatti</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> </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/DU0PR10MB572810F0BD45DFB97C578D0C9EE52%40DU0PR10MB5728.EURPRD10.PR= OD.OUTLOOK.COM?utm_medium=3Demail&utm_source=3Dfooter">https://groups.googl= e.com/d/msgid/wx-users/DU0PR10MB572810F0BD45DFB97C578D0C9EE52%40DU0PR10MB57= 28.EURPRD10.PROD.OUTLOOK.COM</a>.<br /> --_000_DU0PR10MB572810F0BD45DFB97C578D0C9EE52DU0PR10MB5728EURP_--