Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Templates: Some tips on template writing 1999-02-25 -- Phillip Carroll Newsgroups: TopSpeed.Topic.Templates
Editors note: Please note that some lines may wrap in the template code.
Ayo,
Let me offer an additional idea for your consideration. This is a
technique I use with UltraTree. It may be useful for at least some of the
values you have in mind:
1) Code a #PROMPT statement for each value
2) Place the #PROMPT statements in #GROUP sections, in a separate file.
3) Use #INCLUDE to include the file into the template
4) Use #INSERT to organize the prompt groups on tabs
With this method, default values are isolated, making them easy to change
using the editor. For instance, in the case of UltraTree, users can
translate text into languages other than English. Default values are
easily overridden on a case by case basis by changing the prompts at
application design time. Your template refers to each value by its symbol.
Here is an example of tooltips from UltraTree:
#! --------------------------------------------
#GROUP(%Translations1)
#!
#! Default tool tips for standard vcr and update toolbar buttons
#!
#PROMPT('VCR Bottom:',@S50),%VcrBottomTip,DEFAULT('Go to bottom of tree')
#PROMPT('VCR Top:',@S50),%VcrTopTip,DEFAULT('Go to top of tree')
#PROMPT('VCR Page Down:',@s50),%VcrPgDnTip,DEFAULT('Go to next page')
#PROMPT('VCR Page Up:',@S50),%VcrPgUpTip,DEFAULT('Go to previous page')
#PROMPT('VCR Down:',@S50),%VcrDownTip,DEFAULT('Go to next record')
#PROMPT('VCR Up:',@S50),%VcrUpTip,DEFAULT('Go to previous record')
#PROMPT('Insert:',@S50),%InsertTip,DEFAULT('Insert a new record')
#PROMPT('Change:',@S50),%ChangeTip,DEFAULT('Change an existing record')
#PROMPT('Delete:',@S50),%DeleteTip,DEFAULT('Delete an existing record')
#! --------------------------------------------
Phil Carroll
Paragon Design & Development
UltraTree Professional Edition - the ultimate tree
http://www.paragondandd.com
Today is December 3, 2024, 12:01 pm This article has been viewed 35312 times. Google search has resulted in 20 hits on this article since January 25, 2004.
|
|