- status_ = [[UITextLabel alloc] init];
- [status_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin)];
- [status_ setColor:[UIColor whiteColor]];
- [status_ setBackgroundColor:[UIColor clearColor]];
- [status_ setCentersHorizontally:YES];
- //[status_ setFont:font];
-
- output_ = [[UITextView alloc] init];
- [output_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
- //[output_ setTextFont:@"Courier New"];
- [output_ setFont:[[output_ font] fontWithSize:12]];
- [output_ setTextColor:[UIColor whiteColor]];
- [output_ setBackgroundColor:[UIColor clearColor]];
- [output_ setMarginTop:0];
- [output_ setAllowsRubberBanding:YES];
- [output_ setEditable:NO];
- [[self view] addSubview:output_];
-
- close_ = [[UIPushButton alloc] init];
- [close_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin)];
- [close_ setAutosizesToFit:NO];
- [close_ setDrawsShadow:YES];
- [close_ setStretchBackground:YES];
- [close_ setEnabled:YES];
- [close_ setTitleFont:[UIFont boldSystemFontOfSize:22]];
- [close_ addTarget:self action:@selector(closeButtonPushed) forEvents:UIControlEventTouchUpInside];
- [close_ setBackground:[UIImage applicationImageNamed:@"green-up.png"] forState:0];
- [close_ setBackground:[UIImage applicationImageNamed:@"green-dn.png"] forState:1];