diff options
author | nyamatongwe <unknown> | 2005-03-25 05:08:19 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-03-25 05:08:19 +0000 |
commit | 95848e7ea6bd1c2cee3ae2170988cc0bd4f6c728 (patch) | |
tree | f2811fe3e1c71fffa02bcbe638546e2ffd42aee0 | |
parent | 221524e05b3e8566c0523b960ff9fdd55e1f2dc6 (diff) | |
download | scintilla-mirror-95848e7ea6bd1c2cee3ae2170988cc0bd4f6c728.tar.gz |
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.
-rw-r--r-- | include/Platform.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; }; /** |