[Tix-developers] Re: [tix] tixFileEntry customization question
Brought to you by:
idiscovery,
mikeclarkson
|
From: Mike C. <su...@in...> - 2000-10-19 17:50:03
|
At 10:56 PM 10/18/00 -0700, Mike Lansdaal wrote: >Greg - There are three ways that I can think of, and they are all >workarounds since there is no -directory option that I could find for >tixFileEntry. ... >Here are the workarounds > >1) You can set the current working directory before you display the file >entry dialog. Tix will then use whatever that is set to. Setting the >working directory isn't easy, but can be done this way (you'll need the >callDLL extension from Scriptics/TclDev). Never thought of that one! >2) You can redefine the built-in proc tixFileEntry:filedialog with your own >version. Just include it inline and your version will override the >definition in Tix (ain't scripting great!). Here's the code I used in my >test script. I did have to get it to be called once before it overrode the >built-in definition. Easier is to: "catch tixFileEntry" >3) Much less portable - you could go into the Library file and modify the >megawidget description and implementation and add a new option switch to set >the initial directory being used. Seems like it could be a desirable >change. Yes, but I don't see an easy way of doing it. I'll look further. >I think this brings up a question of what is the mechanism that is being >used/should be used to decide that a new feature is to be added or an >existing feature be changed in Tix. All these bug fixes are good to keep in >sync with Tcl/Tk, but right now Tix seems kind of a dead end as far as >feature growth. Tix now has a home where these kinds of things can be discussed: http://tix.sourceforge.net All of the code is now under CVS which was a crucial step. The documentation has been brought up to date, all the patches have been collected and applied, and we're almost finished bringing the code up to 8.[0123] compatability. There's a survey for what features people want to drop from Tix: https://sourceforge.net/survey/?group_id=5649 Maybe we can use the Forums as a place to post requests for enhancements: https://sourceforge.net/forum/?group_id=5649 If you have patches to provide new features, you can submit context diffs: https://sourceforge.net/patch/?group_id=5649 This was Tix can be kept alive as far as feature growth. Mike. -------------------------- eGroups Sponsor -------------------------~-~> Get FREE long-distance phone calls on Tellme! Dial 1-800-555-TELL, say "Phone Booth" http://click.egroups.com/1/9816/9/_/17156/_/971977793/ ---------------------------------------------------------------------_-> |