From 09972b3a179d7ea39ef6ce7e0474531797c549fb Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 11 Jun 2017 14:08:43 +1000 Subject: Implement SCN_AUTOCSELECTIONCHANGE notification. --- include/Platform.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'include/Platform.h') 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; }; -- cgit v1.2.3