Native Field as part of group

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
hrcap
Posts: 138
Joined: Mon Jan 14, 2019 5:20 pm

Native Field as part of group

Post by hrcap » Fri Aug 16, 2024 6:21 pm

Hi All

I hope everyone is well.

I am currently working on improving iOS based layouts and am moving away from standard text input fields to Native Fields.

One issue that I am coming up against is that when the field lays near the bottom of the layout the soft keyboard on screen covers the native field.

How an I create the native field as part of an existing group please, so that the user can scroll the group up to above the soft keyboard?


Many Thanks

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Native Field as part of group

Post by Klaus » Sat Aug 17, 2024 10:09 am

Since a native iOS field is an OVERLAY on top of your card, I'm afraid it is not possible to "put" it into a group.
Maybe with some ugly tricks, but not right out of the box.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Native Field as part of group

Post by richmond62 » Sat Aug 17, 2024 11:26 am

Is a native field a widget authored in LCB?

Ouch: the result of asking questions when browsing the Forums from my Android phone;
-
Screenshot 2024-08-17 at 13.30.45.png

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Native Field as part of group

Post by Klaus » Sat Aug 17, 2024 11:39 am

Yep, unfotunately only an Android Native Filed is available as a widget and can therefore be place into group.
I already posted an enhancement request for an iOS native field widget, too.

SWEdeAndy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 324
Joined: Sat Aug 16, 2008 9:48 am
Contact:

Re: Native Field as part of group

Post by SWEdeAndy » Sat Aug 17, 2024 12:17 pm

hrcap wrote:
Fri Aug 16, 2024 6:21 pm
How an I create the native field as part of an existing group please, so that the user can scroll the group up to above the soft keyboard?
You'll have to code it in a way that the native field is only created after the group has scrolled up. If needed, you can put a placeholder rectangle (that can be invisible, or look like a field or something) in the group, and after it has scrolled, create the native field and set its rect to the rect of the placeholder.
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com

hrcap
Posts: 138
Joined: Mon Jan 14, 2019 5:20 pm

Re: Native Field as part of group

Post by hrcap » Mon Aug 19, 2024 4:35 pm

Hi All

Thank you very much for the feedback. I had a feeling that it may not be possible to place it within a group.

I'll look at making field which appears above the onscreen keyboard like on WhatsApp which should solve the issue.

While im at it do you know when I should get the 'effective working screen rect'.... if I get this at the same time as the iOS field is created it appears that it doesnt give the onscreen keyboard enough time to fully appear on screen and so getting the rect at this point gives a bigger rect than should be.

Post Reply