I Have Figured it out lol. anybody who reads this in the future, use listctrl ;)...

$dirname = "$dir/path/"; $lc->DeleteAllItems(); my ($red, $green) = ( wxRED, wxGREEN ); foreach my $file ( <'$dirname'/*> ) { next if -d $file; open( my $FILE, $file ); binmode( $FILE ); $filesize = -s $file; $file =~ s{.*/}{}; $md5 = Digest::MD5->new->addfile($FILE)->hexdigest; if ( $md5s =~ $md5 ) { my $text = ( "Match! | $file | $filesize\n" ); $lc->InsertStringItem( 0, $text ); ( $text ) = Wx::ListItem->new; $text->SetId( 0 ); $text->SetTextColour( $green ); $lc->SetItem( $text ); } else { my $text = ( "Warning! | $file | $filesize\n" ); $lc->InsertStringItem( 0, $text ); ( $text ) = Wx::ListItem->new; $text->SetId( 0 ); $text->SetTextColour( $red ); $lc->SetItem( $text ); } }

this will color each individual item in a listctrl. im not sure if this is the "proper" way to do it but it does work. now i just need to specify a darker shade of green, cz that bright green is like glow in the dark.

In reply to Re: How do i color font in a listbox? by james28909
in thread How do i color font in a listbox? (Solved!!!) by james28909

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.