ASPiK SDK
Loading...
Searching...
No Matches
CTextEdit

CTextEdit
The CTextEdit object provides a control that the user may select and then type in a value. When the user hits the <tab> or <return> key, the text is updated and delivered to the GUI object for processing. This object is similar to the COptionMenu object in that you may set the font color and background color schemes, and the corners may be rounded. In the GUI designer, it is called a Text Edit control.

When you setup a text edit object in the GUI designer, you will drag and drop a CTextEdit object onto the canvas. You will then need to set the following parameters in the control’s attribute fields:

• title: the default text that appears in the control
• font-color: the text color
• back-color: the color behind the text
• frame-color: the color of an outer frame (usually we just make this the same as the back-color
• frame-width: the width of the frame in pixels; when the frame-color and back-color are identical, this attribute has no meaning
• control-tag: the controlID value that links this control to a plugin parameter

There are several more optional style settings that you may apply depending on your personal taste. These attributes are selected or de-selected with check-boxes and the most common two of the styles are:

• transparent: the background of the control is transparent
• style-no-frame: when checked, the frame-color and frame-width are ignored
• style-round-rect: rounds the corners of the control; the curvature is set with the round-rect-radius attribute – the larger this value, the more rounded the corners appear

As with the COptionMenu control, you may simply resize the object with the mouse, stretching and pulling it into the desired size. With auto-sizing turned on, you don’t have to enter any size attributes.