Page command

User avatar
greycheek
Posts: 34
Joined: Sun Mar 15, 2015 3:14 pm
My devices: MacBook Air, Iphone 6+, Ipad 2

Re: Page command

Post by greycheek »

Mr. Kibernetik wrote:
greycheek wrote:Note how the first text field disappears after hitting the back button.
Because it goes to page "1" after executing the command

Code: Select all

FIELD 0 TEXT "Text goes here . . ." AT 10,10 SIZE W,H ML RO
I'm sorry, can you clarify ? I thought the BACK button would hide page 1 and reveal the initial Graphics page.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Page command

Post by Mr. Kibernetik »

At first you create FIELD 0 at default PAGE with command
FIELD box$(i) TEXT "Text" AT 10,10+(30*i) SIZE 100,25
and then you re-create FIELD 0 at PAGE 1 with command
FIELD 0 TEXT "Text goes here . . ." AT 10,10 SIZE W,H ML RO

So, your FIELD 0 now belongs to PAGE 1, not to default page.

User avatar
greycheek
Posts: 34
Joined: Sun Mar 15, 2015 3:14 pm
My devices: MacBook Air, Iphone 6+, Ipad 2

Re: Page command

Post by greycheek »

I see. However my original program doesnt redefine any fields or buttons as far as I can see, yet going back to the default page always wipes out all fields and buttons. Not sure what to do about it.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Page command

Post by Mr. Kibernetik »

greycheek wrote:I see. However my original program doesnt redefine any fields or buttons as far as I can see, yet going back to the default page always wipes out all fields and buttons. Not sure what to do about it.
Make all your pages visible at the same time (or being semi-transparent) to see when objects disappear.

Post Reply