RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomButtonedEdit Class

TCustomButtonedEditis the base class for edit controls that contain embedded buttons.

Pascal
TCustomButtonedEdit = class(TCustomEdit);
C++
class TCustomButtonedEdit : public TCustomEdit;

A TCustomButtonedEdit is the base class for edit controls that have associated buttons. This class introduces new properties for managing buttons that sit to the sides of the edit control.  

This class contains an Images property that holds an TImagelist that displays on the LeftButton and RightButton to indicate state. LeftButton and RightButton properties contain indexes into the Images TImageList to specify which image to use for which state. OnLeftButtonClick and OnRightButtonClick are event handlers for the buttons.  

Do not create instances of TCustomButtonedEdit. Use TCustomButtonedEdit as a base class when declaring edit controls that include buttons. Properties and methods of TCustomButtonedEdit provide basic behavior that descendant classes inherit as well as behavior that components can override to customize their behavior. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!