Article Preview
Buy Now
COLUMN
Getting Your Auto-Fill
Extending the EditField control
Issue: 3.2 (November/December 2004)
Author: Toby Rush
Author Bio: Toby Rush is a music instructor, consultant, freelance programmer, web designer, husband and Dad in Greeley, Colorado.
Article Description: No description available.
Article Length (in bytes): 9,982
Starting Page Number: 44
Article Number: 3221
Resource File(s):
3221.zip Updated: 2013-03-11 19:07:58
Related Link(s): None
Excerpt of article text...
One of the new interface elements that has emerged over the past half-decade or so is the auto-completing EditField, which analyzes what is being typed and, if it matches the first portion of an item from a list, completes the typing for the user.
These gadgets first became popular in web browsers, where they allow users to just type the first portion of a URL that they had recently visited. Apple uses this type of EditField in many programs, most visibly iTunes and Mail.
This is the type of thing that's screaming to be a subclass in REALbasic: an extension of an existing control that provides some extra features. We can subclass REALbasic's EditField class pretty easily -- the process will involve adding an array of strings to serve as the list, and the coding to make it do lookups and autocompletions.
Implementation
...End of Excerpt. Please purchase the magazine to read the full article.