private void SetupControls()
{
TrayManager.ShowCursor();
// make room for the controls
TrayManager.ShowLogo( TrayLocation.TopRight );
TrayManager.ShowFrameStats( TrayLocation.TopRight );
TrayManager.ToggleAdvancedFrameStats();
infoLabel = TrayManager.CreateLabel( TrayLocation.Top, "TInfo", "", 350 );
editMenu = TrayManager.CreateLongSelectMenu( TrayLocation.Bottom, "EditMode", "Edit Mode", 370, 250, 3 );
editMenu.AddItem( "None" );
editMenu.AddItem( "Elevation" );
editMenu.AddItem( "Blend" );
editMenu.SelectItem( 0 ); // no edit mode
flyBox = TrayManager.CreateCheckBox( TrayLocation.Bottom, "Fly", "Fly" );
flyBox.SetChecked( false, false );
shadowsMenu = TrayManager.CreateLongSelectMenu( TrayLocation.Bottom, "Shadows", "Shadows", 370, 250, 3 );
shadowsMenu.AddItem( "None" );
shadowsMenu.AddItem( "Color Shadows" );
shadowsMenu.AddItem( "Depth Shadows" );
shadowsMenu.SelectItem( 0 );
IList<string> names = new List<string>();
names.Add("Help");
//a friendly reminder
TrayManager.CreateParamsPanel( TrayLocation.TopLeft, "Help", 100, names ).SetParamValue( 0, "H/F1" );
}