Started radiobutton work. This event model isn't going to work.
This commit is contained in:
parent
237cdffee6
commit
02c81c7b0d
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
// 20 may 2015
|
||||
#include "uipriv_windows.h"
|
||||
|
||||
struct radiobuttons {
|
||||
uiRadioButtons r;
|
||||
struct ptrArray *hwnds;
|
||||
};
|
Loading…
Reference in New Issue