Page 1 of 1

Can an interface page be deleted?

Posted: Fri Feb 16, 2018 10:03 am
by ZZTop
Can an interface page be deleted and by doing so also deletes all fields, buttons, etc defined on the page?

Re: Can an interface page be deleted?

Posted: Fri Feb 16, 2018 4:46 pm
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.

Re: Can an interface page be deleted?

Posted: Fri Feb 16, 2018 7:09 pm
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’.

Re: Can an interface page be deleted?

Posted: Fri Feb 16, 2018 8:08 pm
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.