in reply to A question on using Tk::ItemStyle in Tk::Tree

Don't usually have access to a Windows machine, but one was here so I gave your code a try with "strawberry-perl-", and the same versions of ItemStyle and Tree as you. After adding a couple lines to the top, it worked without the problems you described:

use strict; use warnings; use Tk; use Tk::Tree; use Tk::ItemStyle;

Might be worth upgrading if that's an option. GL

Replies are listed 'Best First'.
Re^2: A question on using Tk::ItemStyle in Tk::Tree
by Anonymous Monk on Oct 30, 2014 at 16:15 UTC
    Hey Loops,

        Thank you for giving quick try to my problem. While I'm consistently seeing the problem when executing the code I posted, upgrading to a 5.20 may not be an option. May be I need to do some workaround. Don't know what. However, I was wondering if you can answer Question No: 3.

    Question 3:
         Just like we can configure the font for each of the display item in the tree via the -font option, is there a way to configure the size of the indicator(the plus minus signs by default) in tandem with font for the text entries in the tree ?

    Thanks again