I am having trouble getting anything to show up in a listbox control I created. The listbox itself shows up fine. Relevant code appears here:
#Prepare Listview for Load $win->lvwData_Entered->Clear(); $win->lvwData_Entered->InsertColumn ( -text=>"Tape", -width=>80); $win->lvwData_Entered->InsertColumn ( -text=>"MFGDATE", -width=>80 +); $win->lvwData_Entered->InsertColumn ( -text=>"Library", -width=>80 +); $win->lvwData_Entered->InsertColumn ( -text=>"DateLoaded", -width= +>80); $win->Show(); $win->lvwData_Entered->InsertItem ( -item=>0, -text=>"000234D"); $win->lvwData_Entered->InsertItem ( -item=>1, -text=>"000235D"); $win->lvwData_Entered->InsertItem ( -item=>2, -text=>"000236D"); $win->lvwData_Entered->Update(); $win->tfLoad_TapeName->SetFocus(); print_dbg("Main()--Listview","Column must be ".$win->lvwData_Enter +ed->GetStringWidth("000000d"). " characters wide.\n."); print_dbg("Main()--Listview","There are ".$win->lvwData_Entered->C +ount()." tapes in list.\n"); print_dbg("Main()--Listview","First visible is ".$win->lvwData_Ent +ered->GetFirstVisible()."\n"); print_dbg("Main()--Listview","View-mode: ".$win->lvwData_Entered-> +View()."\n"); print_dbg("Main()--Listview","There are ".$win->lvwData_Entered->V +isibleCount(). " Viewable tapes in list."); Win32::GUI::Dialog(); return(1); }

In reply to Listview control weirdness by talwyn

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.