SaveLayout?

splatt

Active Member
Licensed User
Longtime User
I have a panel with many imageviews, each which can contain anyone of several bitmaps.

Is it possible, in activity_pause to save the state of this panel (panelx.savelayout) with all it's added views and states, to then be reloaded in activity_resume with panelx.loadlayout?
 
Last edited:

klaus

Expert
Licensed User
Longtime User
Yes you can.
With Panel.NumberOfViews you know how many Views you have and in a For loop you can save the parameters you need.
You can also have a layout for the panel and recall this layout in Activity_Resume and rearrange the views according to the parameters saved in the file.
You could use a List or a Map Collection to save the parameters.

Best regads.
 
Upvote 0
Top