Пример #1
0
// NewCombobox creates a new Combobox.
// This Combobox is not editable.
func NewCombobox() *Combobox {
	c := new(Combobox)

	c.cb = C.uiNewCombobox()
	c.c = (*C.uiControl)(unsafe.Pointer(c.cb))

	C.realuiComboboxOnSelected(c.cb)
	comboboxes[c.cb] = c

	return c
}
Пример #2
0
// NewEditableCombobox creates a new editable Combobox.
func NewEditableCombobox() *Combobox {
	c := new(Combobox)

	c.c = C.uiNewEditableCombobox()
	c.co = (*C.uiControl)(unsafe.Pointer(c.c))

	C.realuiComboboxOnSelected(c.c)
	comboboxes[c.c] = c

	return c
}