http://twitpic.com/5oi0xq

Clicking on the “home” button calling screen main() results in the screen being loaded inside the tabSet instead of replacing the tabSet.

Submitted by Terje Pedersen on 11 July 2011 at 10:41

On 11 July 2011 at 10:44 Zef Hemel commented:

Is this new in 0.4.5?


On 11 July 2011 at 10:48 Terje Pedersen commented:

It might been before aswell. I just added those buttons before I left work on friday.


On 11 July 2011 at 10:55 Zef Hemel commented:

The behavior has always been to load the screen in the inner-most visible screenContext. But I agree that we really need a way to specify where to load it. Here’s an idea. Every screen already has a few implicit arguments (such as animate). How about I add an extra argument target that can be either ‘_top’ (like HTML) to load the screen at the top level (entire screen), or another name specified using the screenContext menu.

For instance:


screen about() { … }

screenContext(“mycontext”) {
}
button(“About top”, onclick={
about(target=“_top”); // loads it full-screen
})
button(“About my context”, onclick={
about(target=“mycontext”); // loads it within the screenContext container
})

Similary, a tabSet would have a (custom?) name for its own screenContext.


On 14 July 2011 at 11:58 Zef Hemel tagged 0.5.0

On 15 July 2011 at 16:19 Zef Hemel closed this issue.

On 6 November 2011 at 15:55 Oskar van Rest tagged !oskarvanrest

On 6 November 2011 at 15:55 Oskar van Rest commented:

@Zef Hemel: I would be very happy with this extra argument too. Hope it will be added in 0.5.0 and that 0.5.0 will be released soon :-)

Log in to post comments