antioch has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I've been working on a script in Perl/Tk and have been having some trouble using the Tk::BrowseEntry module. I have everything set up really but I just can't seem to get some of the options working despite my continuous efforts to find support on them.. Here are the ones that I'm getting caught up one:

"-autolimitheight" It says that if it is set to a true value that it will work so I tried using "1" and then just plain old "true" but still no luck.

"-arrowimage" I tried specifying an image to use that was a Bitmap and everything but it just simply denied it. Couldn't find an example of how to use that either :-\

And last is how to change the list background color. I'm not really sure if this is possible but I thought that I might be able to give it a shot here.

I realize that it's quite a bit to ask but I figured that they were all pretty much related.. Any help on these options would be greatly appreciated! Thanks! :)

Replies are listed 'Best First'.
Re: Using Tk::BrowseEntry Options
by arden (Curate) on Jun 07, 2004 at 05:22 UTC
    antioch, from your previous post I'll assume that you're still talking about using ActiveState on Windows. You really should include that sort of information on each question you ask because most people don't remember all of the previous postings for every monk. I only remember because I try to follow all new threads on Tk. Oh yeah, you should also mention which version of Tk you have too, just to be thorough.

    I have some unfortunate news for you, many of the options in Perl/Tk simply do not work in M$ Windows. They were originally written and tested against X-Windows usually, and the framework for M$ doesn't allow many of them (arrowimage is one I've tried working with before and failed too).

    If you have access, try your options out on a Linux or UNIX system. Let us know if they do or do not work there, along with which OS and windowing manager used. I'd wager that you'll find they work as advertised there, whereas The Evil Empire does not allow it's various file-browse and dialog boxes to be altered outside of their standards.

    Sorry.

    - - arden.

Re: Using Tk::BrowseEntry Options
by antioch (Sexton) on Jun 07, 2004 at 05:31 UTC
    Ah, I see.. I've been planning on installing Red Hat Linux on an old PC of mine, better now than never I guess haha. Well thanks for the heads up arden, and I'll be sure to include my operating information in future posts and to try out the options on another system. :)

    --antioch
Re: Using Tk::BrowseEntry Options
by eserte (Deacon) on Jun 07, 2004 at 10:39 UTC
    -autolimitheight and -arrowimage were added to a later version of Tk::BrowseEntry (I think in Tk800.025, but for sure in Tk804.027). Make sure that you're using the latest version of Tk. Alternatively you can try to copy the new BrowseEntry.pm to your old Tk, as it's pure perl there are good chances it will work.
Re: Using Tk::BrowseEntry Options
by antioch (Sexton) on Jun 07, 2004 at 15:06 UTC
    Yay, I tried copying it into there and it worked fine but messed up some other stuff so I really just need to upgrade my whole Tk. Thanks for the help!