From 7bbf6255aa2b342586841c21efbb571b6b9d27de Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 12 Jul 2000 07:21:46 +0000 Subject: Added John's autocompletion changes and fiddled to make autocompletion list size better. --- include/Platform.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/Platform.h b/include/Platform.h index 785bc8923..6fff59afa 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -328,7 +328,7 @@ public: void Show(bool show=true); void InvalidateAll(); void InvalidateRectangle(PRectangle rc); - void SetFont(Font &font); + virtual void SetFont(Font &font); enum Cursor { cursorText, cursorArrow, cursorUp, cursorWait, cursorHoriz, cursorVert, cursorReverseArrow }; void SetCursor(Cursor curs); void SetTitle(const char *s); @@ -345,14 +345,17 @@ class ListBox : public Window { WindowID scroller; int current; #endif + int desiredVisibleRows; + size_t maxItemCharacters; + unsigned int aveCharWidth; public: ListBox(); virtual ~ListBox(); - ListBox &operator=(WindowID id_) { - id = id_; - return *this; - } void Create(Window &parent, int ctrlID); + virtual void SetFont(Font &font); + void SetAverageCharWidth(int width); + void SetVisibleRows(int rows); + PRectangle GetDesiredRect(); void Clear(); void Append(char *s); int Length(); -- cgit v1.2.3