Updated the main program to use tBox. If we test it, nothing should show up...
This commit is contained in:
parent
7bd98bafc9
commit
a7b0df8198
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue