Started constructing the final test tBox.
This commit is contained in:
parent
10efe52513
commit
f434b8e1b9
|
@ -13,23 +13,34 @@ BOOL margined = NO;
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)note
|
- (void)applicationDidFinishLaunching:(NSNotification *)note
|
||||||
{
|
{
|
||||||
tWindow *mainwin;
|
tWindow *mainwin;
|
||||||
tBox *box;
|
tBox *box, *hbox;
|
||||||
tButton *button;
|
tButton *button;
|
||||||
tSpinbox *spinbox;
|
tSpinbox *spinbox;
|
||||||
|
|
||||||
mainwin = [[tWindow alloc] init];
|
mainwin = [[tWindow alloc] init];
|
||||||
[mainwin tSetMargined:margined];
|
[mainwin tSetMargined:margined];
|
||||||
|
|
||||||
box = [[tBox alloc] tInitVertical:NO];
|
box = [[tBox alloc] tInitVertical:YES];
|
||||||
|
|
||||||
button = [[tButton alloc] tInitWithText:@"Button"];
|
|
||||||
[box tAddControl:button stretchy:YES];
|
|
||||||
|
|
||||||
[mainwin tSetControl:box];
|
|
||||||
|
|
||||||
spinbox = [[tSpinbox alloc] init];
|
spinbox = [[tSpinbox alloc] init];
|
||||||
[box tAddControl:spinbox stretchy:NO];
|
[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];
|
[mainwin tShow];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue