diff --git a/redo/osxaltest/main.m b/redo/osxaltest/main.m index a8fb1b80..a64675e0 100644 --- a/redo/osxaltest/main.m +++ b/redo/osxaltest/main.m @@ -13,23 +13,34 @@ BOOL margined = NO; - (void)applicationDidFinishLaunching:(NSNotification *)note { tWindow *mainwin; - tBox *box; + tBox *box, *hbox; tButton *button; tSpinbox *spinbox; mainwin = [[tWindow alloc] init]; [mainwin tSetMargined:margined]; - box = [[tBox alloc] tInitVertical:NO]; - - button = [[tButton alloc] tInitWithText:@"Button"]; - [box tAddControl:button stretchy:YES]; - - [mainwin tSetControl:box]; + box = [[tBox alloc] tInitVertical:YES]; spinbox = [[tSpinbox alloc] init]; [box tAddControl:spinbox stretchy:NO]; + [mainwin tSetControl:box]; + + hbox = [[tBox alloc] tInitVertical:NO]; + button = [[tButton alloc] tInitWithText:@"Button"]; + [hbox tAddControl:button stretchy:YES]; + button = [[tButton alloc] tInitWithText:@"Button"]; + [hbox tAddControl:button stretchy:YES]; + [box tAddControl:hbox stretchy:NO]; + + hbox = [[tBox alloc] tInitVertical:NO]; + button = [[tButton alloc] tInitWithText:@"Button"]; + [hbox tAddControl:button stretchy:YES]; + button = [[tButton alloc] tInitWithText:@"Button"]; + [hbox tAddControl:button stretchy:YES]; + [box tAddControl:hbox stretchy:NO]; + [mainwin tShow]; }