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

Maarten Bent <[email protected]> Thu, 18 Jun 2026 20:37:12 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------5KLNImsLbIaaY4G9jDHExs0V
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: quoted-printable

Hi, I see two problems.

The dialog that is created doesn't have a size, adding=20
_my_dialog->Fit(); shows its contents.
Your example creates a MyDialog instead of a MyFrame, which results in=20
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] per conto di Vadim Zeitlin
> *Inviato:*=C2=A0Marted=C3=AC, 16 Giugno, 2026 15:06
> *A:* [email protected]
> *Oggetto:*=C2=A0Re: 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->AddPa=
ge(new=20
> MyPanel(_my_dialog->m_auinotebook1), "");
> GG>
> GG> What could be wrong?
>
> =C2=A0I don't know, you'd need to make a self-contained example or a smal=
l=20
> patch
> reproducing the problem in the aui sample.
>
> =C2=A0Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
> https://urldefense.com/v3/__https://www.tt-solutions.com/__;!!EAvW5M_HCdS=
ncw!L-nFhZHt89B9Uw1iPcYK2HaMkEMbDrqqinWUmaC27nhxLQqAoa89tmXmuPpDTndJJfSo5ah=
8gXNnv8L6ZNHTbWmqIT5oEw$=20
> <https://urldefense.com/v3/__https://www.tt-solutions.com/__;!!EAvW5M_HCd=
Sncw!L-nFhZHt89B9Uw1iPcYK2HaMkEMbDrqqinWUmaC27nhxLQqAoa89tmXmuPpDTndJJfSo5a=
h8gXNnv8L6ZNHTbWmqIT5oEw$>
> --=20
> Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
> ---
> You received this message because you are subscribed to the Google=20
> Groups "wx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send=20
> an email to [email protected].
> To view this discussion visit=20
> https://groups.google.com/d/msgid/wx-users/DU0PR10MB5728221DABABFB1A9E1FB=
F8B9EE52%40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.COM=20
> <https://groups.google.com/d/msgid/wx-users/DU0PR10MB5728221DABABFB1A9E1F=
BF8B9EE52%40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.COM?utm_medium=3Demail&utm_=
source=3Dfooter>.

--=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/50=
6d801c-a0e4-47c3-85f2-465718a73bb2%40gmail.com.

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

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8=
">
  </head>
  <body>
    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 class=3D"moz-cite-prefix">On 16 Jun 2026 15:21, Gatti Gianluca
      wrote:<br>
    </div>
    <blockquote type=3D"cite"
cite=3D"mid:[email protected]=
ROD.OUTLOOK.COM">
      <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
      <style type=3D"text/css" style=3D"display:none;">@scope { P {margin-t=
op:0;margin-bottom:0;} }</style>
      <div class=3D"elementToProof"
style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calib=
ri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
        I send you my source code in attachment.</div>
      <div class=3D"elementToProof"
style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calib=
ri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
        Thank you,</div>
      <div class=3D"elementToProof"
style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calib=
ri, 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: 12p=
t; 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: 12p=
t; color: rgb(0, 0, 0);">
        <b>Da:</b>=C2=A0<a class=3D"moz-txt-link-abbreviated" href=3D"mailt=
o:[email protected]">[email protected]</a> per conto di Vad=
im Zeitlin<br>
        <b>Inviato:</b>=C2=A0Marted=C3=AC, 16 Giugno, 2026 15:06<br>
        <b>A:</b>=C2=A0<a class=3D"moz-txt-link-abbreviated" href=3D"mailto=
:[email protected]">[email protected]</a><br>
        <b>Oggetto:</b>=C2=A0Re: R: Adding page dynamically does not work o=
n
        Windows </div>
      <div
style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12p=
t; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style=3D"font-size: 11pt;">On Tue, 16 Jun 2026 12:47:23 +0000
        Gatti Gianluca 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_auinote=
book1-&gt;AddPage(new
        MyPanel(_my_dialog-&gt;m_auinotebook1), "");<br>
        GG&gt;<br>
        GG&gt; What could be wrong?<br>
        <br>
        =C2=A0I 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>
        =C2=A0Regards,<br>
        VZ<br>
        <br>
        --<br>
        TT-Solutions: wxWidgets consultancy and technical support<br>
        =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 <a
href=3D"https://urldefense.com/v3/__https://www.tt-solutions.com/__;!!EAvW5=
M_HCdSncw!L-nFhZHt89B9Uw1iPcYK2HaMkEMbDrqqinWUmaC27nhxLQqAoa89tmXmuPpDTndJJ=
fSo5ah8gXNnv8L6ZNHTbWmqIT5oEw$"
          id=3D"OWA892b2579-206a-7ff1-3584-7d583f5d5f38"
          class=3D"OWAAutoLink moz-txt-link-freetext"
          rel=3D"noopener noreferrer" data-auth=3D"NotApplicable"
          moz-do-not-send=3D"true">
https://urldefense.com/v3/__https://www.tt-solutions.com/__;!!EAvW5M_HCdSnc=
w!L-nFhZHt89B9Uw1iPcYK2HaMkEMbDrqqinWUmaC27nhxLQqAoa89tmXmuPpDTndJJfSo5ah8g=
XNnv8L6ZNHTbWmqIT5oEw$</a><br>
      </div>
      -- <br>
      Please read <a
        href=3D"https://www.wxwidgets.org/support/mlhowto.htm"
        moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">https://ww=
w.wxwidgets.org/support/mlhowto.htm</a>
      before posting.<br>
      --- <br>
      You received this message because you are subscribed to the Google
      Groups "wx-users" group.<br>
      To unsubscribe from this group and stop receiving emails from it,
      send an email to <a
        href=3D"mailto:[email protected]"
        moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext">wx-users+u=
[email protected]</a>.<br>
      To view this discussion visit <a
href=3D"https://groups.google.com/d/msgid/wx-users/DU0PR10MB5728221DABABFB1=
A9E1FBF8B9EE52%40DU0PR10MB5728.EURPRD10.PROD.OUTLOOK.COM?utm_medium=3Demail=
&amp;utm_source=3Dfooter"
        moz-do-not-send=3D"true">https://groups.google.com/d/msgid/wx-users=
/DU0PR10MB5728221DABABFB1A9E1FBF8B9EE52%40DU0PR10MB5728.EURPRD10.PROD.OUTLO=
OK.COM</a>.<br>
    </blockquote>
    <br>
  </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/506d801c-a0e4-47c3-85f2-465718a73bb2%40gmail.com?utm_medium=3Demai=
l&utm_source=3Dfooter">https://groups.google.com/d/msgid/wx-users/506d801c-=
a0e4-47c3-85f2-465718a73bb2%40gmail.com</a>.<br />

--------------5KLNImsLbIaaY4G9jDHExs0V--