Hi Derick - I have been using loadLayoufromData() in the moaigui API, to be able to things like this:
app_screens = {
{ data = dofile(resources.getPath("layout_welcome.lua")), layername="welcome_" },
{ data = dofile(resources.getPath("layout_genderselect.lua")), layername="genderselect_" },
{ data = dofile(resources.getPath("layout_weightselect.lua")), layername="weightselect_" },
{ data = dofile(resources.getPath("layout_heightselect.lua")), layername="heightselect_" },
{ data = dofile(resources.getPath("layout_birthday.lua")), layername="birthday_" },
{ data = dofile(resources.getPath("layout_summary.lua")), layername="summary_" },
}
--- then, later on:
roots, widgets, groups = g:loadLayoutfromData(app_screens[screen_requested].data, app_screens[screen_requested].layername)
.. and actually, this has worked very well for multi-form layouts. I was just wondering what the reason for removing this from the API was, and if there is an alternative method that you'd like us to be using?
Hi Derick - I have been using loadLayoufromData() in the moaigui API, to be able to things like this:
.. and actually, this has worked very well for multi-form layouts. I was just wondering what the reason for removing this from the API was, and if there is an alternative method that you'd like us to be using?