summaryrefslogtreecommitdiff
path: root/wintable
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-02-19 22:33:44 -0500
committerPietro Gagliardi <[email protected]>2015-02-19 22:36:53 -0500
commit6b9f1f282fc0aeb2654538a60a6f81dd99421ae1 (patch)
treec8b231e148d6b0b4b0c5f3b40afdc3fb8fd00bb7 /wintable
parent7392dca627fbcc3117a1ed264522f4b7301a1b83 (diff)
Added tableNotificationSelectionChanged on the Windows Table and hooked it up to package ui's Table.
Diffstat (limited to 'wintable')
-rw-r--r--wintable/includethis.h4
-rw-r--r--wintable/select.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/wintable/includethis.h b/wintable/includethis.h
index 25836ef..4c7ee2a 100644
--- a/wintable/includethis.h
+++ b/wintable/includethis.h
@@ -40,6 +40,10 @@ enum {
// data is zero
// no return
tableNotificationCellCheckboxToggled,
+ // sent even on deselection (in that case, row == -1 and column == -1)
+ // data is zero
+ // no return
+ tableNotificationSelectionChanged,
};
typedef struct tableNM tableNM;
diff --git a/wintable/select.h b/wintable/select.h
index 898865a..6ece240 100644
--- a/wintable/select.h
+++ b/wintable/select.h
@@ -105,6 +105,9 @@ noScroll:
NotifyWinEvent(EVENT_OBJECT_SELECTION, t->hwnd, OBJID_CLIENT, t->selectedRow);
// TODO send EVENT_OBJECT_STATECHANGED too?
// TODO send EVENT_OBJECT_FOCUS
+
+ // TODO before or after NotifyWinEvent()? (see what other things I'm doing)
+ notify(t, tableNotificationSelectionChanged, t->selectedRow, t->selectedColumn, 0);
}
// TODO make this needless