You can also use a Menu content item in a popup menu.
memoGadget.AddContent( Scf.Menu( 600, // menu id "Quick Menu", // title ScfSelectAction.Target, // select action Scf.Item( 100, // destination id "Active Locations"), // item text Scf.Item( 101, // destination id "Duty Roster") // item text ) );
The preceding code creates a Menu content item. This item is ID number 600. You can add it to another content item.
memoGadget.AddContent( Scf.Content( 101, // id "Main Entrance", // title 600, // menu content Scf.Img( 200, // image id ScfAlign.Center, // alignment ScfImageFit.Auto, // fit option "Front Entrance"), // alt text Scf.Txt( ScfAlign.Left, // text alignment true, // want word wrap Color.White, // text color "Check main doors.") // text content ) );
The device now displays the menu content in item number 600 if the user presses the Menu button while the device is displaying content item 101.
Figure 8-14 shows the display produced when the Menu button is pressed. Note that the two default selections, Back and Home, are displayed, along with the two provided by the Menu content item.
Figure 8-14: A popup menu item.
You can add popup menu items to any content pages. Different content pages can have different popup menu items.