Can an interface page be deleted?

Post Reply
ZZTop
Posts: 2
Joined: Tue Feb 13, 2018 2:16 pm
Flag: United States of America

Can an interface page be deleted?

Post by ZZTop »

Can an interface page be deleted and by doing so also deletes all fields, buttons, etc defined on the page?

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Can an interface page be deleted?

Post by rbytes »

If you mean from within the program, then no, there is no command for doing this. But if you use PAGE (name) HIDE, the effect is almost the same. All interface objects created on that page (buttons, fields, lists, etc.) are instantly hidden and are non-functional. When you SHOW the page again, they all reappear and function normally. Unless you are working with very limited RAM, being unable to delete a page should not be an issue.
The only thing that gets me down is gravity...

ZZTop
Posts: 2
Joined: Tue Feb 13, 2018 2:16 pm
Flag: United States of America

Re: Can an interface page be deleted?

Post by ZZTop »

Thanks for the info! I am using two pages, loading each page with many different fields which will change in number, size and content and which are replaced every ten seconds or so. I tried using draw text at x,y but it seems to only write to the main graphics page not the currently selected ‘Page’.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Can an interface page be deleted?

Post by rbytes »

Anything that you draw will always appear on the default page. Only interface objects can be attached to a page that you create. So when you want to attach a title or label to one of your created pages, you can just add a field to that page. Set it to RO so that it won't call the keyboard and cursor if someone clicks on it. Set the field background alpha to 0, and it will then just show its text but not the container.
The only thing that gets me down is gravity...

Post Reply