Allows the edit control content to be left, right or center aligned.
Before Windows 98 only multiline edit controls allowed for different text alignment modes. That is probably the reason why such a property is missing in Delphi/C++Builders TEdit. Alternative VCL solutions therefore derived from multiline edit controls and made them appear and behave as single line edit controls. This, however, often leads to other issues, f.e. the handling of Tab and Enter keys which have a different meaning in multiline edit controls.
This edit control is derived from the single line TEdit but provides a new property that includes the alignment modes first introduced in Windows 98. Under Windows 95, though, the text will always appear left aligned!
The control has been tested with Delphi 6 and C++Builder 5 but should work with other versions as well. |