Started radiobutton work. This event model isn't going to work.

This commit is contained in:
Pietro Gagliardi 2015-05-20 17:52:21 -04:00
parent 237cdffee6
commit 02c81c7b0d
4 changed files with 22 additions and 0 deletions

View File

@ -29,6 +29,7 @@ SETTOO(Slider, Low, -80)
SETTOO(Slider, High, 80)
uiCombobox *cbox;
uiRadioButtons *rb;
uiBox *makePage4(void)
{
@ -83,5 +84,13 @@ uiBox *makePage4(void)
uiComboboxAppend(cbox, "Item 3");
uiBoxAppend(page4, uiControl(cbox), 0);
/*
rb = uiNewRadioButtons();
uiRadioButtonsAppend(rb, "Item 1");
uiRadioButtonsAppend(rb, "Item 2");
uiRadioButtonsAppend(rb, "Item 3");
uiBoxAppend(page4, uiControl(rb), 0);
*/
return page4;
}

View File

@ -175,6 +175,11 @@ interface Combobox from Control {
};
func NewCombobox(void) *Combobox;
interface RadioButtons from Control {
func Append(text *const char);
};
func NewRadioButtons(void) *RadioButtons;
interface Menu {
func AppendItem(name *const char) *MenuItem;
func AppendCheckItem(name *const char) *MenuItem;

View File

@ -16,6 +16,7 @@ osCFILES = \
windows/menu.c \
windows/parent.c \
windows/progressbar.c \
windows/radiobuttons.c \
windows/resize.c \
windows/separator.c \
windows/slider.c \

View File

@ -0,0 +1,7 @@
// 20 may 2015
#include "uipriv_windows.h"
struct radiobuttons {
uiRadioButtons r;
struct ptrArray *hwnds;
};