Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 17 in printed book and digital formats -- plus a one-year subscription (beginning with 18.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 3.2

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):

Download Icon 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.