diff options
| author | nyamatongwe <devnull@localhost> | 2001-10-12 01:28:38 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-10-12 01:28:38 +0000 | 
| commit | ddb2fad7b7e66a653592a5844d06e32b2b7dd939 (patch) | |
| tree | 3c45c726d02bb3d57a58d11dc930f16316653cfe /include/Platform.h | |
| parent | 9e526b4bada24e7c42aa66fbe7a6ebd79a899765 (diff) | |
| download | scintilla-mirror-ddb2fad7b7e66a653592a5844d06e32b2b7dd939.tar.gz | |
Patch from John to allow double-clicking in autocompletion lists on GTK+.
Diffstat (limited to 'include/Platform.h')
| -rw-r--r-- | include/Platform.h | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/include/Platform.h b/include/Platform.h index 74de63174..6d37799e7 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -333,6 +333,11 @@ public:  };  /** + * A simple callback action passing one piece of untyped user data. + */ +typedef void (*CallBackAction)(void*); + +/**   * Class to hide the details of window manipulation.   * Does not own the window which will normally have a longer life than this object.   */ @@ -373,7 +378,9 @@ public:  /**   * Listbox management.   */ +  class ListBox : public Window { +private:  #if PLAT_GTK  	WindowID list;  	WindowID scroller; @@ -383,6 +390,9 @@ class ListBox : public Window {  	unsigned int maxItemCharacters;  	unsigned int aveCharWidth;  public: +	CallBackAction doubleClickAction; +	void *doubleClickActionData; +public:  	ListBox();  	virtual ~ListBox();  	void Create(Window &parent, int ctrlID); @@ -398,6 +408,10 @@ public:  	int Find(const char *prefix);  	void GetValue(int n, char *value, int len);  	void Sort(); +	void SetDoubleClickAction(CallBackAction action, void *data) { +		doubleClickAction = action; +		doubleClickActionData = data; +	}  };  /** | 
