Keyboard covers text field when typing
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Keyboard covers text field when typing
In the original card or the "only fields" card(the card after clicking edit group )?
Re: Keyboard covers text field when typing
I found a command in the dic and tried in my app. It doesnt work.
Here is the code
on keyboardActivated
set the vScroll of group "Fields" to 50
end keyboardActivated
The code should be put in the card script or group script by the way?
Michael
Here is the code
on keyboardActivated
set the vScroll of group "Fields" to 50
end keyboardActivated
The code should be put in the card script or group script by the way?
Michael
Re: Keyboard covers text field when typing
I've found keyboardActivated to be flaky.
Does your group "Fields" have a vertical scrollbar?
If so then put this into a button:
on mouseUp
set the vScroll of group "Fields" to 50
end mouseUp
What happens?
Simon
Does your group "Fields" have a vertical scrollbar?
If so then put this into a button:
on mouseUp
set the vScroll of group "Fields" to 50
end mouseUp
What happens?
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Keyboard covers text field when typing
My group doesn't have a vertical scrollbar.Simon wrote:I've found keyboardActivated to be flaky.
Does your group "Fields" have a vertical scrollbar?
If so then put this into a button:
on mouseUp
set the vScroll of group "Fields" to 50
end mouseUp
What happens?
Simon
The fields are seperated
Name: _____
Password: ______
Membership No.:_____
like this.
What next...
Re: Keyboard covers text field when typing
Michael hi,
* When keyboard activated, collapse your group and turn on the vScrollBar.
* When keyboard disappears, expand your group and turn off the vScrollBar.
* vScroll is not the scrollbar, it is how much the content is scrolled as in pixels.
Have a look at this stack, it's what Simon meant: Hope it helps...
Best,
~ Ender Nafi
* When keyboard activated, collapse your group and turn on the vScrollBar.
* When keyboard disappears, expand your group and turn off the vScrollBar.
* vScroll is not the scrollbar, it is how much the content is scrolled as in pixels.
Have a look at this stack, it's what Simon meant: Hope it helps...
Best,
~ Ender Nafi
~... together, we're smarter ...~
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
Re: Keyboard covers text field when typing
Thanks, Ender Nafi!endernafi wrote:Michael hi,
* When keyboard activated, collapse your group and turn on the vScrollBar.
* When keyboard disappears, expand your group and turn off the vScrollBar.
* vScroll is not the scrollbar, it is how much the content is scrolled as in pixels.
Have a look at this stack, it's what Simon meant: Hope it helps...
Best,
~ Ender Nafi
I've read your script. It really gives me the clue.
Now I have to reasearch your script to know exactly how it works and applies it into my other necessary cards, although you offered quite a few XXXXField commands ......

I am still going to keep waiting for Simon. See if he can give a better option ~~~
He's really a good man and I really really thank him!
Re: Keyboard covers text field when typing
Did you follow my post that said make the group vertically larger????
Group all the content of the card.
Make the group vertically larger (twice as large for now) by using the Inspector, ensuring that all the content is at the top of the group. Position the group so that all content is visible, lock the size of the group. Turn on the groups vertical scroll bar for now.
You should now be able to scroll the page up and down manually, the content should leave the screen as you scroll down.
now try that button script
Simon
Group all the content of the card.
Make the group vertically larger (twice as large for now) by using the Inspector, ensuring that all the content is at the top of the group. Position the group so that all content is visible, lock the size of the group. Turn on the groups vertical scroll bar for now.
You should now be able to scroll the page up and down manually, the content should leave the screen as you scroll down.
now try that button script
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Keyboard covers text field when typing
Those events do activate / deactivate the keyboard, they are the reason.ECNU4271 wrote:Although you offered many XXXXField commands
So, you have to script them.
As Simon stated, keyboardActivated message is somewhat flaky.
~ Ender Nafi
~... together, we're smarter ...~
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
Re: Keyboard covers text field when typing
I take my last post back...
Hold on checking...
Simon
Hold on checking...
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Keyboard covers text field when typing
hey Simon,
I did what you told me.
The fields go up to the top of the card. The scrollbar shows up but it is not working.
Nothing happens after I click the button.(I've entered the script)
Michael
I did what you told me.
The fields go up to the top of the card. The scrollbar shows up but it is not working.
Nothing happens after I click the button.(I've entered the script)
Michael
Re: Keyboard covers text field when typing
Ok back again, sorry.
Ungroup your card (to start fresh) make sure all the objects are in the correct place.
Again group all the objects in your card.
Lock the group size (everything should be visible and the group should be about the size of your card)
Now the spacer...
Edit the group and add a blank image (no boarder) to the bottom of your group make it's vertical size twice the card size, move it to the bottom of the group.
Turn on the vertical scroll bar.
You should now have a group that you can manually scroll up and down (Yes?)
Simon
Ungroup your card (to start fresh) make sure all the objects are in the correct place.
Again group all the objects in your card.
Lock the group size (everything should be visible and the group should be about the size of your card)
Now the spacer...
Edit the group and add a blank image (no boarder) to the bottom of your group make it's vertical size twice the card size, move it to the bottom of the group.
Turn on the vertical scroll bar.
You should now have a group that you can manually scroll up and down (Yes?)
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Keyboard covers text field when typing
Example of a scrolling group:
- Attachments
-
- grp_scroll.zip
- (859 Bytes) Downloaded 285 times
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Keyboard covers text field when typing
how to add a blank image?
import?
import?
Re: Keyboard covers text field when typing
drag 'n drop from the tools???
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Keyboard covers text field when typing
Might be better to use a graphic object rather than an image
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!