in reply to How to load a file in Perl/Tk

hi Janish

Hyperlink does not exists in Perl\Tk. You can easily add a dropdown list of file and a 'load' button, but is not an hyperlink. That said if you have enough creativity and some skill you can mimicry the hyperlink beahviour.

In fact in the thread you cite there is the zentara's answer that exactly mimic the hyperlink's aspect and behaviour; you just need to modify the manipulate_link sub to do what you need.

Take in count that zentara was probably the best Tk monk ever apperead in the cloister so maybe a dedicated search of his works may be worth (results leads to other 5 answers).

HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: How to load a file in Perl/Tk
by Janish (Sexton) on Oct 19, 2015 at 07:25 UTC

    Thank you Discipulus, your reply at least let me know that there is no such feature in Perl/Tk. Zentara sample is great, but it's just my problem not sure how to implement that in my script, still.. I hope someone could shows me guide with sample that could help me to have clearer picture.

      Look Janish at the moment i have no time to produce a full, working Tk example but you have a lot of possibilities. First of them you can create so called hyperlink (as in zentara example) and modify the sub to spawn another windows where the file content is showed. see Displaying text file with perl/tk for an example.
      You can also, if nasty, make a system call to open the editor of choice with the path as argoument.

      L*
      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

        Appreciated Discipulus, for all those links, they helps me gain more knowledges not necessary only to solve my problem here and I'm trying from my end base on all those samples. :)