More TODO resolution.
This commit is contained in:
parent
d1fd35d240
commit
b57221772f
|
@ -267,8 +267,6 @@ static void boxDelete(uiBox *ss, uintmax_t index)
|
||||||
struct boxControl *bc;
|
struct boxControl *bc;
|
||||||
uiControl *removed;
|
uiControl *removed;
|
||||||
|
|
||||||
// TODO rearrange this
|
|
||||||
// TODO sync call order with that of Destroy()
|
|
||||||
bc = ptrArrayIndex(b->controls, struct boxControl *, index);
|
bc = ptrArrayIndex(b->controls, struct boxControl *, index);
|
||||||
removed = bc->c;
|
removed = bc->c;
|
||||||
ptrArrayDelete(b->controls, index);
|
ptrArrayDelete(b->controls, index);
|
||||||
|
|
|
@ -158,7 +158,7 @@ func NewGroup(text *const char) *Group;
|
||||||
// spinbox/slider rules:
|
// spinbox/slider rules:
|
||||||
// setting value outside of range will automatically clamp
|
// setting value outside of range will automatically clamp
|
||||||
// initial value is minimum
|
// initial value is minimum
|
||||||
// TODO what happens if max > min? max == min?
|
// complaint if min >= max?
|
||||||
|
|
||||||
interface Spinbox from Control {
|
interface Spinbox from Control {
|
||||||
func Value(void) intmax_t;
|
func Value(void) intmax_t;
|
||||||
|
|
|
@ -218,6 +218,9 @@ uiSpinbox *uiNewSpinbox(intmax_t min, intmax_t max)
|
||||||
{
|
{
|
||||||
struct spinbox *s;
|
struct spinbox *s;
|
||||||
|
|
||||||
|
if (min >= max)
|
||||||
|
complain("error: min >= max in uiNewSpinbox()");
|
||||||
|
|
||||||
s = (struct spinbox *) uiNewControl(uiTypeSpinbox());
|
s = (struct spinbox *) uiNewControl(uiTypeSpinbox());
|
||||||
|
|
||||||
s->hwnd = uiWindowsUtilCreateControlHWND(WS_EX_CLIENTEDGE,
|
s->hwnd = uiWindowsUtilCreateControlHWND(WS_EX_CLIENTEDGE,
|
||||||
|
|
Loading…
Reference in New Issue