Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
Retiring, March 2020 - sorry, you have missed our final public course.
The Coronavirus situation has lead us to suspend public training - which was on the cards anyway, with no plans to resume

Please ask about private 'maintenance' training for Python, Tcl, Perl, PHP, Lua, etc
Happily continuing private consultancy / programming work
 
Server under maintenance; some slow running (0)
Using Tcl/Tk resource files for flexible applications

If you're looking to write a Tcl/Tk application that can be flexibly configured, don't forget to use named resources. Here are two displays from the same program:

Cliff Lift / Lynton and Lynmouth exampleUse of X resources in TkSo - how did I get the difference in colour and text labels?

1. I drew the buttons WITHOUT ANY TEXT AT ALL, and I did NOT specify a background colour either.

2. I specified an option readfile in my code to bring in a file of resources ... to complete those definitions.

3. I actually created the resource file .... which is simply edited when I want to make changes, but don't want to pay for the expense of getting my program changed!


Here's the resource file - for the Orange, White Hill, Hastings example ...

*top.text: White Hill
*bottom.text: Hastings
*background: Orange

(written 2007-12-16, updated 2007-12-18)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
T222 - Tcl/Tk - Resources

  Previous and next
or
Horse's mouth home
 
Some other Articles
posts, page by page

This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2020: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/1474_Usi ... tions.html • PAGE BUILT: Sat May 27 16:49:10 2017 • BUILD SYSTEM: WomanWithCat