diff options
author | Neil <nyamatongwe@gmail.com> | 2017-06-11 14:08:43 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-06-11 14:08:43 +1000 |
commit | 09972b3a179d7ea39ef6ce7e0474531797c549fb (patch) | |
tree | 530dd174861606cacb57bce355cd14720f0bef9c /include/Platform.h | |
parent | a4051422b4364d1193abc9a31d1f3df42fdedc47 (diff) | |
download | scintilla-mirror-09972b3a179d7ea39ef6ce7e0474531797c549fb.tar.gz |
Implement SCN_AUTOCSELECTIONCHANGE notification.
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/Platform.h b/include/Platform.h index 570ba738b..3a6818192 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -397,6 +397,19 @@ private: * Listbox management. */ +// ScintillaBase implements IListBoxDelegate to receive ListBoxEvents from a ListBox + +struct ListBoxEvent { + enum class EventType { selectionChange, doubleClick } event; + ListBoxEvent(EventType event_) : event(event_) { + } +}; + +class IListBoxDelegate { +public: + virtual void ListNotify(ListBoxEvent *plbe)=0; +}; + class ListBox : public Window { public: ListBox(); @@ -420,7 +433,7 @@ public: virtual void RegisterImage(int type, const char *xpm_data)=0; virtual void RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) = 0; virtual void ClearRegisteredImages()=0; - virtual void SetDoubleClickAction(CallBackAction, void *)=0; + virtual void SetDelegate(IListBoxDelegate *lbDelegate)=0; virtual void SetList(const char* list, char separator, char typesep)=0; }; |