Sherzod Posted October 30, 2015 Share Posted October 30, 2015 Try.. UniHtmlMemo1.SetFocus: http://forums.unigui.com/index.php?/topic/5885-how-i-can-focus-a-tunihtmlmemo-text/&do=findComment&comment=30207 Best regards. Quote Link to comment Share on other sites More sharing options...
elGringo Posted October 30, 2015 Author Share Posted October 30, 2015 Works!!! I don't understand this js code but it works! So solution is procedure TMainForm.UniHTMLMemo1AjaxEvent(Sender: TComponent; EventName: string; Params: TStrings); begin if EventName = 'uploadImage' then begin UniSession.AddJS('Ext.get("'+ UniHTMLMemo1.JSName +'_id-inputCmp-iframeEl").focus()'); UniFileUpload1.Execute; end; end; Theme may be closed. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 30, 2015 Share Posted October 30, 2015 Excelent! 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.