Jump to content

SetFocus to UnimMemo


likemike

Recommended Posts

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

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

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

×
×
  • Create New...