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
|
- (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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue