TLabeledEdit does not show TextHint when it is ReadOnly or not Enabled lazarus / 31-LCL ---------------------------------------------------------------------- kinlion · 2021-03-05 06:51 As title. Maybe TEdit is same, but I did not test. Is it a bug or just designed in such a way? I have a TLabeledEdit to show a parameter, if user did not input the value(the parameter is empty), I want it shows the default value by TextHint. However, the parameter is not editable at some time. Thus I make the LabeledEdit ReadOnly or not Enabled, then the TextHint becomes invisible. Environment: Win10 x64 Lazarus 2.0.10 FPC 3.2.0 SVN Revision: 63526 Any help will be appreciated. ---------------------------------------------------------------------- ASerge · 2021-03-05 13:52 Quote from: kinlion on March 05, 2021, 07:51:22 amI have a TLabeledEdit to show a parameter, if user did not input the value(the parameter is empty), I want it shows the default value by TextHint. However, the parameter is not editable at some time. Thus I make the LabeledEdit ReadOnly or not Enabled, then the TextHint becomes invisible. In my opinion, this is normal. If this is a hint and not a label, then since the field cannot be edited, the hint is not needed either. ---------------------------------------------------------------------- Bart · 2021-03-05 19:17 On Windows TextHint is implemented natively using the Windows API for that. So, what you see is the natural behaviour of Windows. Bart ---------------------------------------------------------------------- jamie · 2021-03-05 23:01 use something like this instead of disabling it etc.. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.LabeledEdit1KeyDown(Sender: TObject; var Key: Word;  Shift: TShiftState);begin  if Key <> VK_TAB Then Key := 0;end;                                           Setup some flag somewhere to turn it on/off ---------------------------------------------------------------------- winni · 2021-03-06 11:44 Hi! If TabStop is enabled pressing Tab never reaches the onKey events. Winni ---------------------------------------------------------------------- jamie · 2021-03-06 14:52 Yes you got me on that one... I guess if I was using Lazarus more often I would of noticed that.. .