Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Perl / Tk / July 2008



Tip: Looking for answers? Try searching our database.

How to use Tk::Tree ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jianhui Wang - 30 Jun 2008 08:41 GMT
Hi there,

I want to use Tk::Tree object to create a tree view, but I didn't see any
options to fold a tree item. Could anybody teach me that?

Thanks
smallpond - 30 Jun 2008 16:12 GMT
> Hi there,
>
>  I want to use Tk::Tree object to create a tree view, but I didn't see any
> options to fold a tree item. Could anybody teach me that?
>
> Thanks

You can force a line of text to wrap by including a newline in it, but
that won't change the vertical spacing between elements, so the Tree
will get messy looking.  Usually, it is better to make it scroll
horizontally.

** Posted from http://www.teranews.com **
Jianhui Wang - 01 Jul 2008 07:49 GMT
Hi there,

I read the Tk::Tree documents again and figure out how to do that. just use
$tree->setmode('open') or $tree->setmode('close').

Thanks

>> Hi there,
>>
[quoted text clipped - 9 lines]
>
> ** Posted from http://www.teranews.com **
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.