I want to remove the caret from a TEdit control in Delphi. I have made the component Enabled := False
but the caret still appears.
My question is how to remove the caret from a disabled TEdit control?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- Is there a Delphi 5 component that can handle .png
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- iOS objective-c object: When to use release and wh
相关文章
- Best way to implement MVVM bindings (View <-> V
- How to handle the TextChanged event only when the
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- HelpInsight documentation in Delphi 2007
- Can RTTI interrogate types from project code at de
- Text Box Text Changed event in WPF
I assume that you mean
TEdit
control.The solution is
HideCaret
function, the only problem is where to call it. The 2 event handlers below worked fine for me:Place a
TApplicationEvents
control on the form and in theOnIdle
event, hide the caret, as follows. Set the event to nil so it only fires once.