From a7b0df819837aa350a0fe015f674d9185386c0e5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 1 Aug 2015 18:08:45 -0400 Subject: [PATCH] Updated the main program to use tBox. If we test it, nothing should show up... --- redo/osxaltest/main.m | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/redo/osxaltest/main.m b/redo/osxaltest/main.m index e6df285d..a5f019a8 100644 --- a/redo/osxaltest/main.m +++ b/redo/osxaltest/main.m @@ -13,17 +13,22 @@ BOOL margined = NO; - (void)applicationDidFinishLaunching:(NSNotification *)note { tWindow *mainwin; + tBox *box; tButton *button; tSpinbox *spinbox; mainwin = [[tWindow alloc] init]; [mainwin tSetMargined:margined]; -// button = [[tButton alloc] tInitWithText:@"Button"]; -// [mainwin tSetControl:button]; + box = [[tBox alloc] tInitVertical:NO]; + + button = [[tButton alloc] tInitWithText:@"Button"]; + [box tAddControl:button stretchy:NO]; + + [mainwin tSetControl:box]; spinbox = [[tSpinbox alloc] init]; - [mainwin tSetControl:spinbox]; + [box tAddControl:spinbox stretchy:YES]; [mainwin tShow]; }