Keyboard covers text field when typing

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Keyboard covers text field when typing

Post by Jellicle » Tue Aug 27, 2013 10:56 am

I always have the status bar visible in my apps. Is that what you mean?

g
14" MacBook Pro
Former LiveCode developer.
Now recovering.

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: Keyboard covers text field when typing

Post by ECNU4271 » Tue Aug 27, 2013 11:48 am

Hi,all!

Things get interesting now... Although I don't know how to react in this situation....

Regards,
Michael

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

Re: Keyboard covers text field when typing

Post by Klaus » Tue Aug 27, 2013 12:23 pm

ECNU4271 wrote:

Code: Select all

on openCard
set the rect of this stack to line 9 of the working screenRects
end openCard
Geeez, you have nine (9) monitors attached to you machine? 8)

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: Keyboard covers text field when typing

Post by ECNU4271 » Tue Aug 27, 2013 1:58 pm

Klaus wrote:
ECNU4271 wrote:

Code: Select all

on openCard
set the rect of this stack to line 9 of the working screenRects
end openCard
Geeez, you have nine (9) monitors attached to you machine? 8)
Well, I don't even know how to use screenRects....

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Keyboard covers text field when typing

Post by Simon » Tue Aug 27, 2013 9:15 pm

Here, tell me what is returned by typing in the field and pressing the button.
Note that you have to touch anywhere out of the field on the screen to make the keyboard go away before you hit the button.

Simon
Attachments
ew_screenRect.zip
LC 6.0
(1.29 KiB) Downloaded 302 times
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: Keyboard covers text field when typing

Post by ECNU4271 » Tue Aug 27, 2013 9:27 pm

Thanks Simon,

it's 0,22,1366,764 what does it mean by the way?

Michael

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: Keyboard covers text field when typing

Post by ECNU4271 » Tue Aug 27, 2013 9:33 pm

nono on my iOS simulater the number is "0,20,320,264"

my screen resolution is 320 * 480

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Keyboard covers text field when typing

Post by Simon » Tue Aug 27, 2013 9:37 pm

Actually I wanted both numbers.
Keyboard up/keyboard down.

The difference in the last number is what you have to accommodate for.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: Keyboard covers text field when typing

Post by ECNU4271 » Tue Aug 27, 2013 9:40 pm

Hi! Simon

It's 0,20,320,264
0,20,320,480
I may not express myself clear in the previous reply.

How may I make use of the difference by the way, I know you mention vScroll group but I really never use it. I am looking vscroll up in the dic now.
Michael

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Keyboard covers text field when typing

Post by Simon » Tue Aug 27, 2013 9:44 pm

So, 264 when the keyboard is up, 480 when down. The numbers are left,top,right,bottom
Now you know where you have to place you field.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: Keyboard covers text field when typing

Post by ECNU4271 » Tue Aug 27, 2013 9:46 pm

maybe a simple example to show how to use vScroll?
and combine groups?

Please!


***I've grouped the fields, where to set the vScroll? in the script of each field?

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: Keyboard covers text field when typing

Post by ECNU4271 » Tue Aug 27, 2013 10:04 pm

I did grouped the fields. (Although I don't know where to name the group)

In the script of the group, I typed : " set the vScroll of group to 50"

How to make it work when keyboard goes up?

What 's the command here?

Thanks
Michael

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Keyboard covers text field when typing

Post by Simon » Tue Aug 27, 2013 10:09 pm

(Although I don't know where to name the group)
Boy am I in trouble :)

How do you name your other objects?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ECNU4271
Posts: 93
Joined: Tue May 07, 2013 4:33 pm

Re: Keyboard covers text field when typing

Post by ECNU4271 » Tue Aug 27, 2013 10:10 pm

haha Simon

I've named the group!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Keyboard covers text field when typing

Post by Simon » Tue Aug 27, 2013 10:13 pm

Now make the group much larger vertically keeping you fields at the top and lock it's size and position.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply