Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

by Loops (Curate)
on Oct 30, 2014 at 15:40 UTC ( #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-", 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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2022-12-05 20:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found