Help with drill-down script
kray at sonsothunder.com
Wed Jun 23 12:46:02 CDT 2010
> Anyway, there's one feature: the first card is an
> index of all the cards in the stack. In HC, all
> you need to do is start typing and as you add
> letters, the selected line changes to reflect
> what you've typed. When you get to what you want,
> you hit return and that takes you to the
> respective card.
> Anyway, it's not working in Rev.
One thing to remember when coming from HC is that in Rev you have true list
fields, so you don't need to "fake" it with selecting a chunk of text in a
As Jacque posted, all you need to do is (1) make your index field into a
list field by setting its listBehavior to "true", (2) make sure the
'traversalOn' of the list field is "true" (otherwise you can't get the
keystroke), and (3) use a script like Jacque provided to grab the user's
keystroke with the 'keydown" handler.
To activate what is currently highlighted, you can trap for the
"returnInField" and "enterInField" messages, grab the currently highlited
line and then do what you want:
put the hilitedText of me into tItemSelected
-- Now do something with it (tItemSelected will
-- contain the text of the line that has the highlight)
> Thanks for reading this far. And since you did, I
> can't resist mentioning some of the features of
> this stack:
> 1) Smart synchronization: if the copy at the
> office gets a new email address and the same
> person at home gets a new cell phone number, both
> are kept and the card is flagged and put in a
> list. You can deal with it later, like when you
> next go to that card which shows the dates of
> both new entries, or go through the list if you
> 2) Parsing of clipboard data, from v-cards, email
> signatures and the like, when making new entries.
> 3) A "Business" checkbox which then alphabetizes
> business names phone-book style, ignoring and
> initial "The" etc.
> 4) Auto-capitalization; you don't have to hit the
> shift key when entering names. It's smart, knows
> about "de" and "von" etc.
> 5) One-click or keystroke phone dialing, via a
> modem, Skype out, or Skype-to-Skype (if there's a
> Skype name in the Notes field).
> 6) Envelope printing of 4 different custom styles (size, return address)
> 7) Sifting to create subsets (Christmas card
> lists, European contacts, email addresses, etc.)
> for export in CSV or tab-delimited format
> 8) Smart printing of Filofax-style pages (no
> entry broken over a page; print one side, turn
> the stack over and print again, all comes out in
> proper order)
> 9) Ability to change the spelling or
> capitalization of a name, then automatically
> moved to where it belongs as needed, and have the
> corresponding Yellow or White pages version
> 10) Hidden "Filed as" field to override the
> default alphabetization, useful for names like
> "van Beethoven" - filed under v or b?
> 11) URL launching (grabs the first or selected
> email or web address) and file/app launching such
> as Word templates, with the appropriate info
> (name and address) in the clipboard
> 12) Unlimited delete and restore of cards (until you quit).
> 13) Name conflict resolution: If you have a John
> Smith entry, and make a new John Smith card, you
> get an alert that he's there already. You can
> delete the new one, the old one, or keep both
> 14) A database of national and international area
> codes so if you have an unknown phone number you
> can see where it's probably located
> 15) And of course it relies on HC/Rev's brilliant
> "Find" so you can for example type a first name
> and a state abbreviation or city name to find
> someone whose last name you don't remember, but
> you know where they live
> 16) Customizable abbreviations expanded on
> address data entry: ny expands to New York, NY
> and de expands to Germany, but only if followed
> by a space (or nothing) and must be the first
> characters of the last line in the address field.
> 17) Phone numbers corrected to be in a standard
> form (dots & parentheses replaced by dashes). US
> numbers get 1- in front, other countries get
> their country code - you can use the
> abbreviations used in the Address field such as
> de for Germany to enter the proper country code
> so you don't have to remember it.
> There's more but I'll stop now...
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode