Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: A question on using Tk::ItemStyle in Tk::Tree

by Loops (Curate)
on Oct 30, 2014 at 15:40 UTC ( [id://1105645]=note: print w/replies, xml ) Need Help??


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-5.20.1.1-32bit", 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1105645]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-18 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found