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
{
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];
}