likemike Posted January 8, 2022 Share Posted January 8, 2022 Hello! I bet, this is a stupid question, but I want to set the focus of an UnimMemo automatically when the form opens. I've tried - OnFormShow -> UnimMemo1.Setfocus : doesn't work - Form1.ActiveControl:=UnimMemo1 : doesn't work Only way to focus the memo is to tap it. Link to comment Share on other sites More sharing options...
Sherzod Posted January 8, 2022 Share Posted January 8, 2022 11 minutes ago, likemike said: but I want to set the focus of an UnimMemo automatically when the form opens. I've tried - OnFormShow -> UnimMemo1.Setfocus : doesn't work - Form1.ActiveControl:=UnimMemo1 : doesn't work Hello, I couldn't reproduce your issue. MainmForm? Which device, browser, UniGUI version? Link to comment Share on other sites More sharing options...
Sherzod Posted January 8, 2022 Share Posted January 8, 2022 Or do you mean showing the virtual keyboard? Link to comment Share on other sites More sharing options...
likemike Posted January 8, 2022 Author Share Posted January 8, 2022 Just now, Sherzod said: Or do you mean showing the virtual keyboard? Yes - if the form opens, the memo isn't focused. That means 1. no cursor is visible in the memo area and 2. the virtual keyboard isn't displayed. But I've tested it now on different devices and browsers. It only doesn't work on iOS/Safari. Link to comment Share on other sites More sharing options...
Recommended Posts