This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var splitView = [[CPSplitView alloc] initWithFrame:CGRectMake(0.0, 0.0, CGRectGetWidth([contentView bounds]), CGRectGetHeight([contentView bounds]))]; | |
[splitView setIsPaneSplitter: YES]; | |
[splitView setVertical:YES]; | |
[splitView setDelegate: nil]; | |
[splitView setAutoresizingMask: CPViewWidthSizable | CPViewHeightSizable]; | |
[splitView setBackgroundColor: [CPColor darkGrayColor]]; | |
[contentView addSubview: splitView]; | |
// Sidebar | |
var sidebar = [[SidebarView alloc] init:contentView]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using themeAttribute's | |
[aTextField setValue: [CPFont boldSystemFontOfSize:11.0] forThemeAttribute:@"font"]; | |
[aTextField setValue: CPCenterTextAlignment forThemeAttribute:@"alignment"]; | |
[aTextField setValue: [CPColor colorWithHexString: "677482"] forThemeAttribute:@"text-color"]; | |
// Else TextField Methods. | |
[aTextField setFont:[CPFont boldSystemFontOfSize:11.0]]; | |
[aTextField setAlignment: CPCenterTextAlignment]; | |
[aTextField setTextColor: [CPColor colorWithHexString: @"677482"]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* AppController.j | |
* textfield | |
* | |
* Created by You on October 9, 2009. | |
* Copyright 2009, Your Company All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
@import "MyTextField.j" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #if PLATFORM(DOM) | |
var CPTextViewDOMInputElement = nil; | |
// #endif | |
@implementation CPTextView : CPTextField | |
{ | |
} |