application navtest

import mobl::ui::generic

screen testing() {
button(“main”, onclick={ root(); })
}

screen root() {
button(“test”, onclick={ testing(); })
control testTab() {}
tabSet([(“Test”, "", testTab)])
}

Pressing the “test” button gives a “main” button inside the “Test” tab.
Pressing the “main” button gives another root screen inside the tab.
and so on..

Is it possible to calling root() so it replace the current screen? Not just the tab.

Submitted by Terje Pedersen on 7 April 2011 at 11:05

On 8 July 2011 at 13:28 Terje Pedersen commented:

This still bugs me. I made buttons for home and back, the home button should take med to the start screen but its placed inside the tabSet.

Log in to post comments