Hi there,
I started diving into the examples and trying to combine 2 of them, “tabar” and “widgets”. I am placing the widgets folder inside the tabar and renaming the main in widgets to per.data so it can be called the tabar program.
Both demos work separately in the present folder setup, but when I want to display/run the widgets program from within the third screen of tabar I get a blank screen. Here’s how I am trying to make it work (the line is commented out since it did not work):
[code]
module(…, package.seeall)
function new()
local g = display.newGroup()
local background = display.newRect(0,display.screenOriginY, display.contentWidth, display.contentHeight-display.screenOriginY)
background:setFillColor(255, 255, 255)
g:insert(background)
local message = display.newText(“Screen 3”, 0, 0, native.systemFontBold, 16)
message:setTextColor(0, 0, 0)
message.x = display.contentWidth*0.5
message.y = display.contentHeight*0.5
g:insert(message)
– local per.data = require( “per.data” ).loadMod()
function g:cleanUp()
g:removeSelf()
end
return g
end
[code]
Please help, I know its the way I am calling it. I think. [import]uid: 95689 topic_id: 16589 reply_id: 316589[/import]