Hello,

I was wondering if anyone could tell me how to change the font of
items, and sub-items within a listbox.  I can 't seem to figure it
out.  I can change the font for the entire Listbox, but not for
indiviual items.  I would like to 'Highlight' certain items if they
are greater or lower than a certain threshhold.  While I'm at it
the fullrowselect, gridlines and checkboxes don't work either.  I
think I read a while back though there is a problem in Win32-GUI that
is causing this.  Any suggestions would be great.  Thanks

##  Perl code below ##
##  I've tried it like this, but it doesn't work


    my $TrailList = $Main->AddListView(
                                      -name      => "TrailListView",
                                      -text      => "hello world!",
                                      -left      => 157, 
                                      -top       => $top + 20,
                                      -width     => $Main->ScaleWidth() - 167, 
                                      -height    => $sec_h - 28,
                                      -style     => WS_CHILD | WS_VSCROLL | WS_VISIBLE 
| 1,
                                      -fullrowselect => 1,
                                      -gridlines => 1,
                                      -checkboxes => 1,
                                      -hottrack   => 1,
                                      );
    
    $Main->TrailListView->InsertColumn(-name => "Name",
                                       -index => 0,
                                       -width => 150, 
                                       -text  => "Name",
                                       );
    
    $Main->TrailListView->InsertColumn(-name => "Updated",
                                       -index   => 1, 
                                       -subitem => 1, 
                                       -width   => 120, 
                                       -text    => "Updated",
                                       );
 #<snip>
 ### Code removed  ###
 #<snip>

 $Main->WeatListView->SetItem(-item    => $item,
                              -subitem => 1,
                              -text    => $Update,
                              -font    => $FontA,  ## Doesn't work
                              );

 $Main->WeatListView->SetItem(-item    => $item,
                              -subitem => 2,
                              -text    => $CurCond,
                              -font    => $FontA,  ## Doesn't work
                                );

-- 
Best regards,
 Cam                          mailto:[EMAIL PROTECTED]



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


Reply via email to