Difference between revisions of "TSpinEdit"

From Lazarus wiki
Jump to navigationJump to search
Line 6: Line 6:
 
== Properties ==
 
== Properties ==
  
Numerous properties are available. The background color, text 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.
+
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.
  
 
[[File:TSpinEdit02.png]]
 
[[File: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.
 +
 +
[[File: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.

Revision as of 19:17, 15 July 2016

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.