Zitat von Michael Van Canneyt <[email protected]>:

On Fri, 11 Sep 2009, Mattias Gärtner wrote:
[...]
It would be nice to have completion boxes Ctrl+Space for all edit fields. They could list all macros and/or all files .... The problem is that the gtk intf does not yet support non modal on modal forms.

Why does this pose a problem ? I would think that you'd use a simple listbox for this ?

Well. Yes, this is be possible, but it has some minor quirks:
- If the edit is on a small dialog the listbox is also very short.
- A listbox needs all items in advance for its scrollbar. This would be pretty slow if the completion box shows thousands of files/words.
- for the highlighting/formatting we need to custom paint.
IMO a custom control is better suited.

Is there any volunteer to program a TCompletionBox?

Mattias


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to