/[EmuXPortal]/branches/mono/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Form1.cs	2012/04/04 01:32:37	17
+++ trunk/EmuXPortal/Form1.cs	2012/04/04 01:55:32	19
@@ -70,17 +70,21 @@
             foreach (IEmuConfig config in parser.Platforms)
             {
                 PlatformControl platform_ctrl = new PlatformControl();
+                platform_ctrl.Dock = DockStyle.Top;
+                platform_ctrl.Width = this.Width - 10;
                 platform_ctrl.Tag = config;
                 platform_ctrl.PlatformImage = config.PlatformImage;
                 platform_ctrl.PlatformName = config.PlatformNameLong;
                 platform_ctrl.PreviewKeyDown += new PreviewKeyDownEventHandler(platform_ctrl_PreviewKeyDown);
                 platform_flow.Controls.Add(platform_ctrl);
+                //platform_flow.SetFlowBreak(platform_ctrl, true);
                 platform_ctrl.GotFocus += new EventHandler(platform_ctrl_GotFocus);
                 platform_ctrl.LostFocus += new EventHandler(platform_ctrl_LostFocus);
                 //CurrentPlatformControl = platform_flow.Controls[0] as PlatformControl;
             }
             platform_flow.Controls[0].Select();
-            (platform_flow.Controls[0] as PlatformControl).BorderStyle = BorderStyle.FixedSingle;
+            (platform_flow.Controls[0] as PlatformControl).BorderStyle = BorderStyle.FixedSingle;            
+
         }
 
         private void rom_flow_VisibleChanged(object sender, EventArgs e)
@@ -92,11 +96,14 @@
             foreach (IRomConfig config in parser.Roms)
             {
                 GameControl game_ctrl = new GameControl();
+                game_ctrl.Dock = DockStyle.Top;
+                game_ctrl.Width = this.Width - 10;
                 game_ctrl.Tag = config;
                 game_ctrl.GameImage = config.RomImage;
                 game_ctrl.GameName = config.RomTitle;
                 game_ctrl.PreviewKeyDown += new PreviewKeyDownEventHandler(game_ctrl_PreviewKeyDown);
                 rom_flow.Controls.Add(game_ctrl);
+                //rom_flow.SetFlowBreak(game_ctrl, true);
                 game_ctrl.GotFocus += new EventHandler(game_ctrl_GotFocus);
                 game_ctrl.LostFocus += new EventHandler(game_ctrl_LostFocus);
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22