Properly tested parent changes for radiobuttons... Z-order changes are still an issue
This commit is contained in:
parent
932340719b
commit
de726086da
|
@ -32,6 +32,13 @@ static uiCombobox *cbox;
|
|||
static uiCombobox *editable;
|
||||
static uiRadioButtons *rb;
|
||||
|
||||
static void appendCBRB(uiButton *b, void *data)
|
||||
{
|
||||
uiComboboxAppend(cbox, "New Item");
|
||||
uiComboboxAppend(editable, "New Item");
|
||||
uiRadioButtonsAppend(rb, "New Item");
|
||||
}
|
||||
|
||||
uiBox *makePage4(void)
|
||||
{
|
||||
uiBox *page4;
|
||||
|
@ -97,6 +104,12 @@ uiBox *makePage4(void)
|
|||
uiRadioButtonsAppend(rb, "Item 3");
|
||||
uiBoxAppend(page4, uiControl(rb), 0);
|
||||
|
||||
hbox = newHorizontalBox();
|
||||
b = uiNewButton("Append");
|
||||
uiButtonOnClicked(b, appendCBRB, NULL);
|
||||
uiBoxAppend(hbox, uiControl(b), 0);
|
||||
uiBoxAppend(page4, uiControl(hbox), 0);
|
||||
|
||||
uiBoxAppend(page4, uiControl(uiNewHorizontalSeparator()), 0);
|
||||
|
||||
uiBoxAppend(page4, uiControl(uiNewDateTimePicker()), 0);
|
||||
|
|
|
@ -8,8 +8,6 @@ struct radiobuttons {
|
|||
uintptr_t insertAfter; // safe to be 0 initially (either not in a container or trully the first in the z-order)
|
||||
};
|
||||
|
||||
// TODO properly test parent changes (add an Add Item button to the test program)
|
||||
|
||||
uiDefineControlType(uiRadioButtons, uiTypeRadioButtons, struct radiobuttons)
|
||||
|
||||
static BOOL onWM_COMMAND(uiControl *c, HWND clicked, WORD code, LRESULT *lResult)
|
||||
|
|
Loading…
Reference in New Issue