Updated the main program to use tBox. If we test it, nothing should show up...

This commit is contained in:
Pietro Gagliardi 2015-08-01 18:08:45 -04:00
parent 7bd98bafc9
commit a7b0df8198
1 changed files with 8 additions and 3 deletions

View File

@ -13,17 +13,22 @@ BOOL margined = NO;
- (void)applicationDidFinishLaunching:(NSNotification *)note - (void)applicationDidFinishLaunching:(NSNotification *)note
{ {
tWindow *mainwin; tWindow *mainwin;
tBox *box;
tButton *button; tButton *button;
tSpinbox *spinbox; tSpinbox *spinbox;
mainwin = [[tWindow alloc] init]; mainwin = [[tWindow alloc] init];
[mainwin tSetMargined:margined]; [mainwin tSetMargined:margined];
// button = [[tButton alloc] tInitWithText:@"Button"]; box = [[tBox alloc] tInitVertical:NO];
// [mainwin tSetControl:button];
button = [[tButton alloc] tInitWithText:@"Button"];
[box tAddControl:button stretchy:NO];
[mainwin tSetControl:box];
spinbox = [[tSpinbox alloc] init]; spinbox = [[tSpinbox alloc] init];
[mainwin tSetControl:spinbox]; [box tAddControl:spinbox stretchy:YES];
[mainwin tShow]; [mainwin tShow];
} }