j += field->padLeft + field->padRight;
- i += j;
if (j > widths[col]) widths[col] = j;
+ i += widths[col];
}
if (i > minWidth) minWidth = i;
j += field->padTop + field->padBottom;
- i += j;
if (j > heights[row]) heights[row] = j;
+ i += heights[row];
}
if (i > minHeight) minHeight = i;
newtInit();
newtCls();
- newtOpenWindow(2, 2, 40, 15, "first window");
-
- b1 = newtButton(-1, -1, "Button 1");
+ b1 = newtCheckbox(-1, -1, "An pretty long checkbox for testing", ' ', NULL, NULL);
b2 = newtButton(-1, -1, "Another Button");
b3 = newtButton(-1, -1, "But, but");
b4 = newtButton(-1, -1, "But what?");
newtFormAddComponents(f, b1, b2, b3, b4, NULL);
- newtGridPlace(grid, 1, 1);
+ newtGridWrappedWindow(grid, "first window");
answer = newtRunForm(f);