Creating a SideShow Dialog Page

As we have seen, a Menu page displays a set of button items, arranged down the display. The direction keys on the SideShow device are used to move up and down the available buttons. A Dialog page also contains buttons that the user can select by means of the direction keys. However, the buttons are arranged differently on the screen in that they are placed in a row along the bottom. A Dialog page can be themed with an image. You can see the difference between them by comparing Figures 8-13 and 8-15.

memoGadget.AddContent( Scf.Dialog( 1, // page ID "Location Select", // title 200, // id of image content Scf.Txt(ScfAlign.Center,true,Color.White,"Main Entrance"), Scf.Btn(DeviceButton.Back,"back",100), Scf.Btn(DeviceButton.Left,"<<", ...

Get Embedded Programming with the Microsoft® .NET Micro Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.