From 95848e7ea6bd1c2cee3ae2170988cc0bd4f6c728 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 25 Mar 2005 05:08:19 +0000 Subject: Patch from Blair McGlashan for autocompletion on Windows to * Set maximum width of list * set maximum height of list * better calculate width * use ellipsis when text is truncated to fit window * use popup window so it can extend past parent window * disallow resizing too small * draw to bottom edge when resized so last item not full line high * improve time to display by by 90% Minor tweaks by me to fix warnings, layout etc. --- include/Platform.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/Platform.h b/include/Platform.h index 5f74c8074..9ff15013c 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -393,9 +393,10 @@ public: static ListBox *Allocate(); virtual void SetFont(Font &font)=0; - virtual void Create(Window &parent, int ctrlID, int lineHeight_, bool unicodeMode_)=0; + virtual void Create(Window &parent, int ctrlID, Point location, int lineHeight_, bool unicodeMode_)=0; virtual void SetAverageCharWidth(int width)=0; virtual void SetVisibleRows(int rows)=0; + virtual int GetVisibleRows() const=0; virtual PRectangle GetDesiredRect()=0; virtual int CaretFromEdge()=0; virtual void Clear()=0; @@ -408,6 +409,7 @@ public: virtual void RegisterImage(int type, const char *xpm_data)=0; virtual void ClearRegisteredImages()=0; virtual void SetDoubleClickAction(CallBackAction, void *)=0; + virtual void SetList(const char* list, char separator, char typesep)=0; }; /** -- cgit v1.2.3