Control

The Control is a View subclass which represents Cocoa’s NSControl.

class Control(parent, width, height)
Parameters:
font

Font. The font of the control. Equivalent to [self font].

alignment

One of TextAlignment constants. Alignment of the text within the field. Equivalent to [self alignment].

controlSize

ControlSize constants. One of the 3 Regular, Small and Mini pre-defined control size. Setting this attribute will change the font size and height of the control to pre-defined values (like Interface Bulder does).

action

Action. The action that is performed on click. Equivalent to [self setTarget:] and [self setAction:].

formatter

Formatters. The formatter for this control.

Previous topic

Layouts

Next topic

Formatters

This Page