From f434b8e1b91129bf49e8e96bc16baa5ba8839137 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 2 Aug 2015 18:40:45 -0400 Subject: [PATCH] Started constructing the final test tBox. --- redo/osxaltest/main.m | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) 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]; }