iOS Question virtual keyboard

Yves Rossignol

Member
Licensed User
Sometime the virtual keyboard is over a region where i need to input data (with the keyboard but I can't because it is hide by keyboard). I have looked into others apps and when something happen like this... the screen under the keyboard goes up... how I can do that...
 

Yves Rossignol

Member
Licensed User
I only want to do that... from step 1 to step 2.... no easier ways??? I have a small video but it is 11 Mo.
 

Attachments

  • step1.JPG
    step1.JPG
    263.7 KB · Views: 196
  • step2.JPG
    step2.JPG
    61.6 KB · Views: 206
Upvote 0

ilan

Expert
Licensed User
Longtime User
it will not go up automatically like in android so you will need to set it in the "Page1_KeyboardStateChanged" as erel wrote in post #2
if you put all views in a panel it will be simpler you will only need to change the panel top value when you show the keyboard.
this can also be done in the "Page1_KeyboardStateChanged".

Note that erel is changing the HEIGHT of the view in that example, i prefer to change the top position of the view instead but its up to you.
 
Upvote 0

Yves Rossignol

Member
Licensed User
As I thought I lack understanding to move up the pnl2 when the fields txfmx or txfmy or txfmz are to be filled (see f1 layout and force module). The object directory is missing (too large).

Thank Ilan for your help. It is very useful....
 

Attachments

  • welds.b4i.zip
    316.7 KB · Views: 191
Upvote 0

ilan

Expert
Licensed User
Longtime User
i dont understand why you have so many pages

but from what i saw in page "force" you declare pg as page
and intialize it with event name "pg"
so why do you use

B4X:
Sub Page1_KeyboardStateChanged (Height As Float)

you should use the same event name you gave your page when you intialize it

it should look like this:

B4X:
Sub pg_KeyboardStateChanged (Height As Float)

the same for resize event

B4X:
Private Sub pg_Resize(width As Int, Height As Int)

i have not tested your app since something is missing.
 
Upvote 0

Yves Rossignol

Member
Licensed User
I have to make a clean up of the application. It is my first one and I have this application already made in purebasic windows.

Thanks, I will make a reply after clean up the app.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I suggest you to put all your views on one panel covering the whole screen instead of two panels and move this one.
Attached a modified version of the project.

How do you generate the zip files to get such big fiels?
You should use Export As Zip in the IDE File menu.
 

Attachments

  • welds1.zip
    87.2 KB · Views: 199
Last edited:
Upvote 0

Yves Rossignol

Member
Licensed User
Ok, It works, but now i want to modify singleW display to hide lblwidthB and txfwidthB for the variable choix = 1 and make them visible for all other value of choix. My question is where i have to put these line's codes
 
Upvote 0

Yves Rossignol

Member
Licensed User
with code... included now i will change the directory name to welds 01 02 03... with the date number (365 per years)
 

Attachments

  • weld 01 jan.zip
    75.7 KB · Views: 201
Upvote 0

klaus

Expert
Licensed User
Longtime User
I think that it's time for you to think on your own.
In the project you posted you have 'Syntax errors' in the singleW module.
Think of what these messages do mean and remove these by yourself, to get experience.
... included now i will change the directory name to welds 01 02 03... with the date number (365 per years)
I haven't seen anything about this in your code !?
You need to be much more precice on what you want to do.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
I think that it's time for you to think on your own.

i agree with klaus, we all are here to help each other but not write a complete app.
you have a lot tutorials and lots of free full sources where you can have a look and learn from them including an excellent Beginner Guide.

(look at klaus signature and for free source you can look at mine)

if you are stuck and cannot find a solution after you search for it in the forum and also looked at the beginner guide we all are here to help you
but you should try first by yourself.

"It is more beneficial to teach someone to fish than to give him fish." :)
 
Upvote 0
Top