> They do? ​Remind me how that works. I don't think I ever knew that.

They work great! Set up an hlist and populate it. Sort of a one-column
listbox without all of the glitter. Give the area focus and start typing.
You automatically move to the right item. Handy for navigating something
like a list of tables. If you want the hlist to react to elements being
clicked/typed to, you'll want code something like this:

*Case of *

* : *(*Form event*=On Clicked) | (*Form event*=On Selection Change)

*C_LONGINT*($table_number)

*C_TEXT*($table_name)

*GET LIST ITEM*(JoinBuilder_TableNames_hlist;*Selected list items*(
JoinBuilder_TableNames_hlist);$table_number;$table_name)

*C_LONGINT*($relations_count)

$relations_count:=*JoinBuilder_LoadRelations *($table_number)

*End case *

In the code above, "JoinBuilder_TableNames_hlist" is the hlist, and each
list item holds a table number (that's the item ref, it isn't displayed)
and a table name (the visible label.) That just the code that I was working
with so it came to hand....

It's pretty smooth and easy to use. Of course, you don't get all of the
nice formatting options like alternate row colors...and I find I do miss
that....but the usability is so much higher this way with code that's no
harder than with an array in a listbox.
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to