How can I get the status bar that's usually on top of the screen?

Hi,
I’m (very, very) new to Codea, and I’d like to use it for simple prototyping to discuss ideas with others. I’ll browse through the tutorials, but I’d like to start with some simple questions, the first of which is:
How can I get the status bar on the top, the one that shows the time, the battery, the wi-fi strength, etc.?
Thanks,
Pedro

My attempt at a status bar so far:

-- Status Bar
function setup()
    platform=deviceMetrics().platform
    device=string.sub(platform,1,string.len(platform)-3)
    bheight=15
    parameter.integer("bheight",10,30)
end

function draw()
    time=os.date("*t").hour..":"..os.date("*t").min
    background(40, 40, 50)
    fill(0)
    rect(-5,HEIGHT-bheight-5,WIDTH+10,bheight+10)
    fill(255)
    fontSize(bheight)
    textMode(CORNER)
    text(device,5,HEIGHT-bheight)
    textMode(CENTER)
    text(time, WIDTH/2,HEIGHT-bheight/2)
end

Codea is a fullscreen app, and there’s no option to show the status bar. Maybe in a future version?

@pvchagas when you export your project, there is one option: ‘show status bar’. You can do this on xcode too

@erickyamato I believe he’s talking about Codea itself, not an app exported from Codea.

I’m sorry that I wasn’t clear enough; I’m still learning what to call things. I was not referring to Codea itself, but to the prototype that I created with my rects, sprites, etc. I would like it to show a status bar when I press the run button, because I’m not prototyping a game, but a regular App. If that isn’t possible, I’ll just mimic the status bar with a rect and a couple of texts. Thanks.

I’ve tested it, and needs a minor tweak, because I’ve obtained 21:3 instead of 21:03. Rgrds, Pedro

@pvchagas See the changes below to fix the time.


-- Status Bar
function setup()
    platform=deviceMetrics().platform
    device=string.sub(platform,1,string.len(platform)-3)
    bheight=15
    parameter.integer("bheight",10,30)
end

function draw()
    ti=os.date("*t")   -- changed
    time=string.format("%d:%02d",ti.hour,ti.min)  -- changed
    background(40, 40, 50)
    fill(0)
    rect(-5,HEIGHT-bheight-5,WIDTH+10,bheight+10)
    fill(255)
    fontSize(bheight)
    textMode(CORNER)
    text(device,5,HEIGHT-bheight)
    textMode(CENTER)
    text(time, WIDTH/2,HEIGHT-bheight/2)
end