Search the Community
Showing results for tags 'setfocus delphi vcl activex'.
Found 1 result
Hello All, I have had an annoying issue in Delphi 10.3.2 setting focus back to a TFileListBox component after loading a file into an ActiveX control. Here is the code for the Click on the FileListBox procedure TfrmCAD.flbCadClick(Sender: TObject); begin LoadFile; flbCAD.SetFocus; end; On execution I would expect the focus to return to the flbCAD TFileListBox control. This does not happen. If I do the following code it does... procedure TfrmCAD.flbCadClick(Sender: TObject); begin LoadFile; btnDetect.SetFocus; flbCAD.SetFocus; end; Is this a bug in the VCL or am I doing something wrong? Thanks