TSpinEdit

From Free Pascal wiki
Revision as of 18:17, 15 July 2016 by Abtaylr (talk | contribs)
Jump to navigationJump to search

The TSpinEdit control is found in the miscellaneous visual components of the LCL Component tree. It is useful for setting a numeric setting made on a form. It can be selected from the component palette found commonly across the top of the main Lazarus IDE just below the main menu. As an alternative this palette can be placed by the user in a different location. The component is also available for manual entry in a program.

TSpinEdit01.png


Properties

Numerous properties are available. The background color, font color, type style, and other similar matters are available to the user. To change the background color, go to the Object Inspector, then select the drop down list which shows the available colors.

TSpinEdit02.png

The listing provides a comprehensive list of colors, but a user can also choose a color by clicking the button to the right of the property -- Color beyond the drop down list. Upon clicking a dialog box opens which enables to user to create their own color.

TSpinEdit03.png

In a similar manner the font color, type style and other similar properties can be selected.

It is also possible to change these properties using pascal code.