picyka Posted March 4, 2022 Share Posted March 4, 2022 I have a default Frame, where I inherit from it to others. In this frame I have a property called ActiveControl, in which after it is created, I run the following code if Assigned(Self.ActiveControl) then TUniFormControl(Self.ActiveControl).JSInterface.JSCallDefer('focus', [False], 100); All controls work, except when it's date field, I'm putting a testcase, just to show the error. Teste.rar Quote Link to comment Share on other sites More sharing options...
picyka Posted March 4, 2022 Author Share Posted March 4, 2022 I even managed to solve it, I don't know if it's the best way. Teste.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 5, 2022 Share Posted March 5, 2022 13 hours ago, picyka said: I even managed to solve it, I don't know if it's the best way. Hello, Also you can use like this: procedure TUniFrame1.UniFrameReady(Sender: TObject); begin UniDateTimePicker1.WebFocus; end; 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.