Loading ...
Sorry, an error occurred while loading the content.

Help needed with Tk::Tree

Expand Messages
  • GARCIA Lionel
    Hi, I m trying to display some informations using the Tree module, but I can t change the foreground color. It s OK for background, but my text is always
    Message 1 of 1 , May 29 8:50 AM
    • 0 Attachment
      Hi,

      I'm trying to display some informations using the Tree module, but I can't
      change the foreground color. It's OK for background, but my text is always
      displayed using the black color. Using this code:

      $tree=$mw->Scrolled(
      Tree,
      -scrollbars=>'osoe',
      -separator=>'.',
      -width=>80,
      -height=>20,
      -foreground=>"blue" <------
      Doesn't work !!!
      -background=>"darkgreen"
      )->pack(
      -fill=>both,
      -expand=>1
      );
      $tree->add("foo", -text=>"test", -foreground=>"blue"); <------
      Doesn't work !!!
      $tree->entryconfigure("foo", -foreground=>"black"); <------
      Doesn't work !!!

      Thanks

      Lionel GARCIA
    Your message has been successfully submitted and would be delivered to recipients shortly.