public
Description: Web Application Framework in JavaScript and Objective-J
Home | Edit | New

Components

Using image backgrounds with your own CPControl based components

3 part background images can be created in your component in the following way:


[CPColor colorWithPatternImage: img];

where the image is defined with:

img = [[CPThreePartImage alloc] initWithImageSlices:[leftImage, centerImage, rightImage]                                                                           
                     isVertical:NO];
Last edited by redmar, Mon Sep 15 15:10:28 -0700 2008
Home | Edit | New
Versions: