i have found alot better of a way to accomplish what i was after, works great and i can format its output to my liking :) sorry for being such a pain @anonymous monk :p
my ($red, $green) = ( Wx::Colour->newRGB(235, 0, 0), Wx::Colour->newRGB(0, 110, 63) ); @md5s = ""; $md5s = ""; $filesize = ''; @md5s = read_file("md5"); $md5s = join( '', @md5s ); my $dirname1 = "some/path/to/files/with/known/md5s"; foreach my $file (<'$dirname1'/*>) { 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 $style1 = Wx::TextAttr->new(); $style->Wx::TextAttr::SetTextColour($green); $lc->SetStyle(-1,-1,$style1); $lc->AppendText("$file | $filesize\n"); } else { my $style2 = Wx::TextAttr->new(); $style1->Wx::TextAttr::SetTextColour($red); $lc->SetStyle(-1,-1,$style2); $lc->AppendText("$file | $filesize\n"); open( my $temporary, '>>', "$dir/md5.txt" ); for ($md5s) { syswrite( $temporary, "$md5\n" ); } } }
So in the end, it was TextCtrl that worked for what i needed. this will get md5 of each file in a directory, compare it against known md5s in a file (@md5s) if it matches text will be green, else it will be red. I really hope this helps someone in the future.

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.