views:

111

answers:

2

Hello,

I'm looking for an enchanced edit component that allow users to input multiple tokens (items) manually separated by some symbol, or to select them from another source.

It's something like "TO" field in outlook or facebook that allow you to input multiple recipients.

Can anyone suggest any solution?

Thanks in advice!

A: 

The way we sort of do it is to use an normal button edit box and when the user clicks the button we present a separate form (which can be made to look like a drop down box if you like) with a checklist or listview with checkboxes enabled or similar. The user selects any number of the items then when the form closes we take the list of selected items and present them in the edit as a comma or semi-colon separated list. The edit itself is read-only so all interaction goes through the separate form.

But - I really don't like the whole approach (for our app) as it doesn't look good when you have many selected items and I'm looking to find a better way of showing the selection! I suppose one option is to use a read-only memo with scrollbars to show the items.

TMS has some nice components, one of which is the TCheckListEdit which might be of use.

shunty
Our application works now in similar way, but we want to improve this mechanism data input. Sometimes is difficult for user to quickly input multiple well known items using another form/listbox/grid, for example some accounts, or codes.Strange that this kind of input component still not exists :(
Dorin
+2  A: 

the usual way is to create another component like

type TMyCustomEdit = class(Tedit)

or you can use the class(TObject) and override its standard property or create a new one.

XBasic3000
Thanks for idea ;) I know how to write components. For now, I'm looking for something ready. If no result, I'll try to implement something.
Dorin