Started constructing the final test tBox.

This commit is contained in:
Pietro Gagliardi 2015-08-02 18:40:45 -04:00
parent 10efe52513
commit f434b8e1b9
1 changed files with 18 additions and 7 deletions

View File

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