From 0c0bbc29fad681bc779f341380760cdd81543dc3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 15 Feb 2014 12:32:12 -0500 Subject: Added combobox/listbox selection helper functions. --- sysdata.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sysdata.go') diff --git a/sysdata.go b/sysdata.go index a331ddc..f8177ac 100644 --- a/sysdata.go +++ b/sysdata.go @@ -39,7 +39,15 @@ func (c *cSysData) append(string) error { func (c *cSysData) insertBefore(string, int) error { panic(runtime.GOOS + " sysData does not define insertBefore()") } -// TODO selectedIndex, selectedIndices, selectedTexts +func (c *cSysData) selectedIndex() (int, error) { + panic(runtime.GOOS + " sysData does not define selectedIndex()") +} +func (c *cSysData) selectedIndices() ([]int, error) { + panic(runtime.GOOS + " sysData does not define selectedIndices()") +} +func (c *cSysData) selectedTexts() ([]string, error) { + panic(runtime.GOOS + " sysData does not define selectedIndex()") +} const ( c_window = iota -- cgit v1.2.3