I am trying to add FlexGridsizers to pane's of a notebook but they always go to the first pane. ... too many _1 _2 _3

See Re: wxPerl: Wx::DatePickerCtrl crashes its sizer? where I say

The two are not unrelated. Naming your variables mainsizer,sizer1,sizer2,button1... is not the best way to keep track of what's what, or what goes where, its easy to get confused

One way of keeping track (what goes where) is naming your sizer/container elements by position, and incorporating the parent/child relationship into the name. Afterwards you incorporate your action elements (text/buttons) and name then by purpose/property/action (email_input/email_text,submit_button,cancel_button... )

This naming problem extends to this

$self = MenuBerekening->new($self); $self = ToolBerekening->new($self); $self = NotebookBoven->new($self); $self = NotebookOnder->new($self);

along with most of your constructors returning two values

Where your problem lies exactly? Its not worth hunting it down, start new file, one for each package, and start fixing the names, and never reuse $self

Also see Re^3: wxPerl Static Text alignment


In reply to Re: wxperl adding sizers to different Notebook Panels (variable names) by Anonymous Monk
in thread wxperl adding sizers to different Notebook Panels by harryC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.