[Mono-winforms-list] [PATCH] Basic support for AutoComplete in TextBox

Jonathan Pobst monkey at jpobst.com
Tue Jun 17 17:18:39 EDT 2008


For Windows, you have to override ActivateOnShow in your 
AutoCompleteListBox and have it always return false.  Else it steals 
focus from the Textbox's Form and you can't type more than one letter.

Do not Dispose() brushes that you get from the ResPool.  On .net, this 
draws nothing, on winmono, it crashes.

Other than that, it looks pretty good!

Jonathan


Carlos Alberto Cortez wrote:
> Hey,
> 
> The attached patch implements the basic functionality for
> TextBox.AutoComplete - which is the auto complete support for custom
> sources. This includes creating a new control to handle such task as
> well as handling the text changes in TextBox.
> 
> Observe that the attached patch lacks keyboard navigation, but it should
> be trivial to add, and actually wanted to have this code reviewed before
> going on ;-)
> 
> My biggest doubt is related to the draw, and where should I put this
> code - probably George can comment on this ;-D
> 
> Carlos.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list



More information about the Mono-winforms-list mailing list