changeset 137:ce63500e0ec1

Re #260: New panels don't work perfectly in Linux through Mono * Debug ToolStrip width and button widths
author IBBoard <dev@ibboard.co.uk>
date Sat, 03 Apr 2010 20:06:33 +0000
parents b1741be290c5
children 18d607b0249b
files FrmMain.cs
diffstat 1 files changed, 362 insertions(+), 357 deletions(-) [+]
line diff
     1.1 --- a/FrmMain.cs	Sat Apr 03 19:46:11 2010 +0000
     1.2 +++ b/FrmMain.cs	Sat Apr 03 20:06:33 2010 +0000
     1.3 @@ -211,363 +211,363 @@
     1.4  		/// the contents of this method with the code editor.
     1.5  		/// </summary>
     1.6  		private void InitializeComponent()
     1.7 -		{
     1.8 -			this.components = new System.ComponentModel.Container();
     1.9 -			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
    1.10 -			this.undoMenu = new System.Windows.Forms.ContextMenu();
    1.11 -			this.redoMenu = new System.Windows.Forms.ContextMenu();
    1.12 -			this.mainMenu = new System.Windows.Forms.MainMenu(this.components);
    1.13 -			this.openArmyDialog = new System.Windows.Forms.OpenFileDialog();
    1.14 -			this.saveArmyDialog = new System.Windows.Forms.SaveFileDialog();
    1.15 -			this.statusBarTimer = new System.Windows.Forms.Timer(this.components);
    1.16 -			this.menuStrip = new System.Windows.Forms.MenuStrip();
    1.17 -			this.menuFile = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.18 -			this.miNewArmy = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.19 -			this.miOpenArmy = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.20 -			this.miSaveArmy = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.21 -			this.miSaveArmyAs = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.22 -			this.miExportArmyAs = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.23 -			this.miExportArmyAsBasicHTML = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.24 -			this.miCloseArmy = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.25 -			this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
    1.26 -			this.miReloadFiles = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.27 -			this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
    1.28 -			this.miExit = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.29 -			this.menuEdit = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.30 -			this.miUndo = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.31 -			this.miRedo = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.32 -			this.menuHelp = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.33 -			this.miAbout = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
    1.34 -			this.mainToolStrip = new System.Windows.Forms.ToolStrip();
    1.35 -			this.bttnNewArmy = new IBBoard.Windows.Forms.IBBToolStripButton();
    1.36 -			this.bttnOpenArmy = new IBBoard.Windows.Forms.IBBToolStripButton();
    1.37 -			this.bttnSaveArmy = new IBBoard.Windows.Forms.IBBToolStripButton();
    1.38 -			this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
    1.39 -			this.bttnUndo = new IBBoard.Windows.Forms.IBBToolStripSplitButton();
    1.40 -			this.bttnRedo = new IBBoard.Windows.Forms.IBBToolStripSplitButton();
    1.41 -			this.catToolStrip = new System.Windows.Forms.ToolStrip();
    1.42 -			this.statusBar = new IBBoard.Windows.Forms.ColorableStatusBar();
    1.43 -			this.sbMainPanel = new IBBoard.Windows.Forms.ColorableStatusBarPanel();
    1.44 -			this.sbErrorPanel = new IBBoard.Windows.Forms.ColorableStatusBarPanel();
    1.45 -			this.sbPointsPanel = new IBBoard.Windows.Forms.ColorableStatusBarPanel();
    1.46 -			this.toolStripPanel = new System.Windows.Forms.ToolStripPanel();
    1.47 -			this.menuStrip.SuspendLayout();
    1.48 -			this.mainToolStrip.SuspendLayout();
    1.49 -			((System.ComponentModel.ISupportInitialize) (this.sbMainPanel)).BeginInit();
    1.50 -			((System.ComponentModel.ISupportInitialize) (this.sbErrorPanel)).BeginInit();
    1.51 -			((System.ComponentModel.ISupportInitialize) (this.sbPointsPanel)).BeginInit();
    1.52 -			this.SuspendLayout();
    1.53 -			// 
    1.54 -			// saveArmyDialog
    1.55 -			// 
    1.56 -			this.saveArmyDialog.Title = "Translatable:saveArmyDialog";
    1.57 -			// 
    1.58 -			// statusBarTimer
    1.59 -			// 
    1.60 -			this.statusBarTimer.Interval = 5000;
    1.61 -			this.statusBarTimer.Tick += new System.EventHandler(this.statusBarTimer_Tick);
    1.62 -			// 
    1.63 -			// menuStrip
    1.64 -			// 
    1.65 -			this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
    1.66 -            this.menuFile,
    1.67 -            this.menuEdit,
    1.68 -            this.menuHelp});
    1.69 -			this.menuStrip.Location = new System.Drawing.Point(0, 0);
    1.70 -			this.menuStrip.Name = "menuStrip";
    1.71 -			this.menuStrip.Size = new System.Drawing.Size(790, 24);
    1.72 -			this.menuStrip.TabIndex = 6;
    1.73 -			this.menuStrip.Text = "menuStrip1";
    1.74 -			// 
    1.75 -			// menuFile
    1.76 -			// 
    1.77 -			this.menuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
    1.78 -            this.miNewArmy,
    1.79 -            this.miOpenArmy,
    1.80 -            this.miSaveArmy,
    1.81 -            this.miSaveArmyAs,
    1.82 -            this.miExportArmyAs,
    1.83 -            this.miCloseArmy,
    1.84 -            this.toolStripSeparator1,
    1.85 -            this.miReloadFiles,
    1.86 -            this.toolStripSeparator2,
    1.87 -            this.miExit});
    1.88 -			this.menuFile.Name = "menuFile";
    1.89 -			this.menuFile.Size = new System.Drawing.Size(33, 20);
    1.90 -			this.menuFile.Text = "&file";
    1.91 -			// 
    1.92 -			// miNewArmy
    1.93 -			// 
    1.94 -			this.miNewArmy.Name = "miNewArmy";
    1.95 -			this.miNewArmy.Size = new System.Drawing.Size(164, 22);
    1.96 -			this.miNewArmy.Text = "&new army";
    1.97 -			this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click);
    1.98 -			// 
    1.99 -			// miOpenArmy
   1.100 -			// 
   1.101 -			this.miOpenArmy.Name = "miOpenArmy";
   1.102 -			this.miOpenArmy.Size = new System.Drawing.Size(164, 22);
   1.103 -			this.miOpenArmy.Text = "&open army";
   1.104 -			this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click);
   1.105 -			// 
   1.106 -			// miSaveArmy
   1.107 -			// 
   1.108 -			this.miSaveArmy.Enabled = false;
   1.109 -			this.miSaveArmy.Name = "miSaveArmy";
   1.110 -			this.miSaveArmy.Size = new System.Drawing.Size(164, 22);
   1.111 -			this.miSaveArmy.Text = "&save army";
   1.112 -			this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click);
   1.113 -			// 
   1.114 -			// miSaveArmyAs
   1.115 -			// 
   1.116 -			this.miSaveArmyAs.Enabled = false;
   1.117 -			this.miSaveArmyAs.Name = "miSaveArmyAs";
   1.118 -			this.miSaveArmyAs.Size = new System.Drawing.Size(164, 22);
   1.119 -			this.miSaveArmyAs.Text = "save army &as...";
   1.120 -			this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click);
   1.121 -			// 
   1.122 -			// miExportArmyAs
   1.123 -			// 
   1.124 -			this.miExportArmyAs.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.125 -            this.miExportArmyAsBasicHTML});
   1.126 -			this.miExportArmyAs.Enabled = false;
   1.127 -			this.miExportArmyAs.Name = "miExportArmyAs";
   1.128 -			this.miExportArmyAs.Size = new System.Drawing.Size(164, 22);
   1.129 -			this.miExportArmyAs.Text = "export army as...";
   1.130 -			// 
   1.131 -			// miExportArmyAsBasicHTML
   1.132 -			// 
   1.133 -			this.miExportArmyAsBasicHTML.Name = "miExportArmyAsBasicHTML";
   1.134 -			this.miExportArmyAsBasicHTML.Size = new System.Drawing.Size(130, 22);
   1.135 -			this.miExportArmyAsBasicHTML.Text = "&basic html";
   1.136 -			this.miExportArmyAsBasicHTML.Click += new System.EventHandler(this.miExportArmyAsBasicHTML_Click);
   1.137 -			// 
   1.138 -			// miCloseArmy
   1.139 -			// 
   1.140 -			this.miCloseArmy.Enabled = false;
   1.141 -			this.miCloseArmy.Name = "miCloseArmy";
   1.142 -			this.miCloseArmy.Size = new System.Drawing.Size(164, 22);
   1.143 -			this.miCloseArmy.Text = "&close army";
   1.144 -			this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click);
   1.145 -			// 
   1.146 -			// toolStripSeparator1
   1.147 -			// 
   1.148 -			this.toolStripSeparator1.Name = "toolStripSeparator1";
   1.149 -			this.toolStripSeparator1.Size = new System.Drawing.Size(161, 6);
   1.150 -			// 
   1.151 -			// miReloadFiles
   1.152 -			// 
   1.153 -			this.miReloadFiles.Name = "miReloadFiles";
   1.154 -			this.miReloadFiles.Size = new System.Drawing.Size(164, 22);
   1.155 -			this.miReloadFiles.Text = "&reload files";
   1.156 -			this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click);
   1.157 -			// 
   1.158 -			// toolStripSeparator2
   1.159 -			// 
   1.160 -			this.toolStripSeparator2.Name = "toolStripSeparator2";
   1.161 -			this.toolStripSeparator2.Size = new System.Drawing.Size(161, 6);
   1.162 -			// 
   1.163 -			// miExit
   1.164 -			// 
   1.165 -			this.miExit.Name = "miExit";
   1.166 -			this.miExit.Size = new System.Drawing.Size(164, 22);
   1.167 -			this.miExit.Text = "e&xit";
   1.168 -			this.miExit.Click += new System.EventHandler(this.miExit_Click);
   1.169 -			// 
   1.170 -			// menuEdit
   1.171 -			// 
   1.172 -			this.menuEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.173 -            this.miUndo,
   1.174 -            this.miRedo});
   1.175 -			this.menuEdit.Name = "menuEdit";
   1.176 -			this.menuEdit.Size = new System.Drawing.Size(36, 20);
   1.177 -			this.menuEdit.Text = "&edit";
   1.178 -			// 
   1.179 -			// miUndo
   1.180 -			// 
   1.181 -			this.miUndo.Enabled = false;
   1.182 -			this.miUndo.Name = "miUndo";
   1.183 -			this.miUndo.Size = new System.Drawing.Size(106, 22);
   1.184 -			this.miUndo.Text = "&undo";
   1.185 -			this.miUndo.Click += new System.EventHandler(this.miUndo_Click);
   1.186 -			// 
   1.187 -			// miRedo
   1.188 -			// 
   1.189 -			this.miRedo.Enabled = false;
   1.190 -			this.miRedo.Name = "miRedo";
   1.191 -			this.miRedo.Size = new System.Drawing.Size(106, 22);
   1.192 -			this.miRedo.Text = "&redo";
   1.193 -			this.miRedo.Click += new System.EventHandler(this.miRedo_Click);
   1.194 -			// 
   1.195 -			// menuHelp
   1.196 -			// 
   1.197 -			this.menuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.198 -            this.miAbout});
   1.199 -			this.menuHelp.Name = "menuHelp";
   1.200 -			this.menuHelp.Size = new System.Drawing.Size(39, 20);
   1.201 -			this.menuHelp.Text = "&help";
   1.202 -			// 
   1.203 -			// miAbout
   1.204 -			// 
   1.205 -			this.miAbout.Name = "miAbout";
   1.206 -			this.miAbout.Size = new System.Drawing.Size(109, 22);
   1.207 -			this.miAbout.Text = "&about";
   1.208 -			this.miAbout.Click += new System.EventHandler(this.miAbout_Click);
   1.209 -			// 
   1.210 -			// mainToolStrip
   1.211 -			// 
   1.212 -			this.mainToolStrip.Dock = System.Windows.Forms.DockStyle.None;
   1.213 -			this.mainToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.214 -            this.bttnNewArmy,
   1.215 -            this.bttnOpenArmy,
   1.216 -            this.bttnSaveArmy,
   1.217 -            this.toolStripSeparator3,
   1.218 -            this.bttnUndo,
   1.219 -            this.bttnRedo});
   1.220 -			this.mainToolStrip.Location = new System.Drawing.Point(0, 24);
   1.221 -			this.mainToolStrip.Name = "mainToolStrip";
   1.222 -			this.mainToolStrip.Size = new System.Drawing.Size(151, 25);
   1.223 -			this.mainToolStrip.TabIndex = 8;
   1.224 -			// 
   1.225 -			// bttnNewArmy
   1.226 -			// 
   1.227 -			this.bttnNewArmy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.228 -			this.bttnNewArmy.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.document_new;
   1.229 -			this.bttnNewArmy.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.230 -			this.bttnNewArmy.Name = "bttnNewArmy";
   1.231 -			this.bttnNewArmy.Size = new System.Drawing.Size(23, 22);
   1.232 -			this.bttnNewArmy.Text = "new army";
   1.233 -			this.bttnNewArmy.Click += new System.EventHandler(this.miNewArmy_Click);
   1.234 -			// 
   1.235 -			// bttnOpenArmy
   1.236 -			// 
   1.237 -			this.bttnOpenArmy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.238 -			this.bttnOpenArmy.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.document_open;
   1.239 -			this.bttnOpenArmy.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.240 -			this.bttnOpenArmy.Name = "bttnOpenArmy";
   1.241 -			this.bttnOpenArmy.Size = new System.Drawing.Size(23, 22);
   1.242 -			this.bttnOpenArmy.Text = "open army";
   1.243 -			this.bttnOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click);
   1.244 -			// 
   1.245 -			// bttnSaveArmy
   1.246 -			// 
   1.247 -			this.bttnSaveArmy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.248 -			this.bttnSaveArmy.Enabled = false;
   1.249 -			this.bttnSaveArmy.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.document_save;
   1.250 -			this.bttnSaveArmy.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.251 -			this.bttnSaveArmy.Name = "bttnSaveArmy";
   1.252 -			this.bttnSaveArmy.Size = new System.Drawing.Size(23, 22);
   1.253 -			this.bttnSaveArmy.Text = "save army";
   1.254 -			this.bttnSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click);
   1.255 -			// 
   1.256 -			// toolStripSeparator3
   1.257 -			// 
   1.258 -			this.toolStripSeparator3.Name = "toolStripSeparator3";
   1.259 -			this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
   1.260 -			// 
   1.261 -			// bttnUndo
   1.262 -			// 
   1.263 -			this.bttnUndo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.264 -			this.bttnUndo.Enabled = false;
   1.265 -			this.bttnUndo.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.edit_undo;
   1.266 -			this.bttnUndo.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.267 -			this.bttnUndo.Name = "bttnUndo";
   1.268 -			this.bttnUndo.Size = new System.Drawing.Size(32, 22);
   1.269 -			this.bttnUndo.Text = "undo";
   1.270 -			this.bttnUndo.ButtonClick += new System.EventHandler(this.miUndo_Click);
   1.271 -			// 
   1.272 -			// bttnRedo
   1.273 -			// 
   1.274 -			this.bttnRedo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.275 -			this.bttnRedo.Enabled = false;
   1.276 -			this.bttnRedo.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.edit_redo;
   1.277 -			this.bttnRedo.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.278 -			this.bttnRedo.Name = "bttnRedo";
   1.279 -			this.bttnRedo.Size = new System.Drawing.Size(32, 22);
   1.280 -			this.bttnRedo.Text = "redo";
   1.281 -			this.bttnRedo.ButtonClick += new System.EventHandler(this.miRedo_Click);
   1.282 -			// 
   1.283 -			// catToolStrip
   1.284 -			// 
   1.285 -			this.catToolStrip.Dock = System.Windows.Forms.DockStyle.None;
   1.286 -			this.catToolStrip.Location = new System.Drawing.Point(161, 24);
   1.287 -			this.catToolStrip.Name = "catToolStrip";
   1.288 -			this.catToolStrip.Size = new System.Drawing.Size(111, 25);
   1.289 -			this.catToolStrip.TabIndex = 9;
   1.290 -			this.catToolStrip.Visible = false;
   1.291 -			// 
   1.292 -			// statusBar
   1.293 -			// 
   1.294 -			this.statusBar.Location = new System.Drawing.Point(0, 586);
   1.295 -			this.statusBar.Name = "statusBar";
   1.296 -			this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
   1.297 -            this.sbMainPanel,
   1.298 -            this.sbErrorPanel,
   1.299 -            this.sbPointsPanel});
   1.300 -			this.statusBar.ShowPanels = true;
   1.301 -			this.statusBar.Size = new System.Drawing.Size(790, 22);
   1.302 -			this.statusBar.TabIndex = 1;
   1.303 -			this.statusBar.PanelClick += new System.Windows.Forms.StatusBarPanelClickEventHandler(this.statusBar_PanelClick);
   1.304 -			this.statusBar.DrawItem += new System.Windows.Forms.StatusBarDrawItemEventHandler(this.statusBar_DrawItem);
   1.305 -			// 
   1.306 -			// sbMainPanel
   1.307 -			// 
   1.308 -			this.sbMainPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
   1.309 -			this.sbMainPanel.Color = System.Drawing.SystemColors.WindowText;
   1.310 -			this.sbMainPanel.Name = "sbMainPanel";
   1.311 -			this.sbMainPanel.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
   1.312 -			this.sbMainPanel.Width = 473;
   1.313 -			// 
   1.314 -			// sbErrorPanel
   1.315 -			// 
   1.316 -			this.sbErrorPanel.Color = System.Drawing.SystemColors.WindowText;
   1.317 -			this.sbErrorPanel.Name = "sbErrorPanel";
   1.318 -			this.sbErrorPanel.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
   1.319 -			this.sbErrorPanel.Width = 150;
   1.320 -			// 
   1.321 -			// sbPointsPanel
   1.322 -			// 
   1.323 -			this.sbPointsPanel.Color = System.Drawing.SystemColors.WindowText;
   1.324 -			this.sbPointsPanel.Name = "sbPointsPanel";
   1.325 -			this.sbPointsPanel.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
   1.326 -			this.sbPointsPanel.ToolTipText = "current points total";
   1.327 -			this.sbPointsPanel.Width = 150;
   1.328 -			// 
   1.329 -			// toolStripPanel
   1.330 -			// 
   1.331 -			this.toolStripPanel.Dock = System.Windows.Forms.DockStyle.Top;
   1.332 -			this.toolStripPanel.Location = new System.Drawing.Point(0, 24);
   1.333 -			this.toolStripPanel.Name = "toolStripPanel";
   1.334 -			this.toolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
   1.335 -			this.toolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0);
   1.336 -			this.toolStripPanel.Size = new System.Drawing.Size(790, 0);
   1.337 -			// 
   1.338 -			// FrmMain
   1.339 -			// 
   1.340 -			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
   1.341 -			this.ClientSize = new System.Drawing.Size(790, 608);
   1.342 -			this.Controls.Add(this.mainToolStrip);
   1.343 -			this.Controls.Add(this.toolStripPanel);
   1.344 -			this.Controls.Add(this.statusBar);
   1.345 -			this.Controls.Add(this.catToolStrip);
   1.346 -			this.Controls.Add(this.menuStrip);
   1.347 -			this.Icon = ((System.Drawing.Icon) (resources.GetObject("$this.Icon")));
   1.348 -			this.IsMdiContainer = true;
   1.349 -			this.MainMenuStrip = this.menuStrip;
   1.350 -			this.Menu = this.mainMenu;
   1.351 -			this.Name = "FrmMain";
   1.352 -			this.Text = "WarFoundry";
   1.353 -			this.Load += new System.EventHandler(this.FrmMain_Load);
   1.354 -			this.menuStrip.ResumeLayout(false);
   1.355 -			this.menuStrip.PerformLayout();
   1.356 -			this.mainToolStrip.ResumeLayout(false);
   1.357 -			this.mainToolStrip.PerformLayout();
   1.358 -			((System.ComponentModel.ISupportInitialize) (this.sbMainPanel)).EndInit();
   1.359 -			((System.ComponentModel.ISupportInitialize) (this.sbErrorPanel)).EndInit();
   1.360 -			((System.ComponentModel.ISupportInitialize) (this.sbPointsPanel)).EndInit();
   1.361 -			this.ResumeLayout(false);
   1.362 -			this.PerformLayout();
   1.363 -
   1.364 +		{
   1.365 +			this.components = new System.ComponentModel.Container();
   1.366 +			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
   1.367 +			this.undoMenu = new System.Windows.Forms.ContextMenu();
   1.368 +			this.redoMenu = new System.Windows.Forms.ContextMenu();
   1.369 +			this.mainMenu = new System.Windows.Forms.MainMenu(this.components);
   1.370 +			this.openArmyDialog = new System.Windows.Forms.OpenFileDialog();
   1.371 +			this.saveArmyDialog = new System.Windows.Forms.SaveFileDialog();
   1.372 +			this.statusBarTimer = new System.Windows.Forms.Timer(this.components);
   1.373 +			this.menuStrip = new System.Windows.Forms.MenuStrip();
   1.374 +			this.menuFile = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.375 +			this.miNewArmy = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.376 +			this.miOpenArmy = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.377 +			this.miSaveArmy = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.378 +			this.miSaveArmyAs = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.379 +			this.miExportArmyAs = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.380 +			this.miExportArmyAsBasicHTML = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.381 +			this.miCloseArmy = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.382 +			this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
   1.383 +			this.miReloadFiles = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.384 +			this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
   1.385 +			this.miExit = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.386 +			this.menuEdit = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.387 +			this.miUndo = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.388 +			this.miRedo = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.389 +			this.menuHelp = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.390 +			this.miAbout = new IBBoard.Windows.Forms.IBBToolStripMenuItem();
   1.391 +			this.mainToolStrip = new System.Windows.Forms.ToolStrip();
   1.392 +			this.bttnNewArmy = new IBBoard.Windows.Forms.IBBToolStripButton();
   1.393 +			this.bttnOpenArmy = new IBBoard.Windows.Forms.IBBToolStripButton();
   1.394 +			this.bttnSaveArmy = new IBBoard.Windows.Forms.IBBToolStripButton();
   1.395 +			this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
   1.396 +			this.bttnUndo = new IBBoard.Windows.Forms.IBBToolStripSplitButton();
   1.397 +			this.bttnRedo = new IBBoard.Windows.Forms.IBBToolStripSplitButton();
   1.398 +			this.catToolStrip = new System.Windows.Forms.ToolStrip();
   1.399 +			this.statusBar = new IBBoard.Windows.Forms.ColorableStatusBar();
   1.400 +			this.sbMainPanel = new IBBoard.Windows.Forms.ColorableStatusBarPanel();
   1.401 +			this.sbErrorPanel = new IBBoard.Windows.Forms.ColorableStatusBarPanel();
   1.402 +			this.sbPointsPanel = new IBBoard.Windows.Forms.ColorableStatusBarPanel();
   1.403 +			this.toolStripPanel = new System.Windows.Forms.ToolStripPanel();
   1.404 +			this.menuStrip.SuspendLayout();
   1.405 +			this.mainToolStrip.SuspendLayout();
   1.406 +			((System.ComponentModel.ISupportInitialize) (this.sbMainPanel)).BeginInit();
   1.407 +			((System.ComponentModel.ISupportInitialize) (this.sbErrorPanel)).BeginInit();
   1.408 +			((System.ComponentModel.ISupportInitialize) (this.sbPointsPanel)).BeginInit();
   1.409 +			this.SuspendLayout();
   1.410 +			// 
   1.411 +			// saveArmyDialog
   1.412 +			// 
   1.413 +			this.saveArmyDialog.Title = "Translatable:saveArmyDialog";
   1.414 +			// 
   1.415 +			// statusBarTimer
   1.416 +			// 
   1.417 +			this.statusBarTimer.Interval = 5000;
   1.418 +			this.statusBarTimer.Tick += new System.EventHandler(this.statusBarTimer_Tick);
   1.419 +			// 
   1.420 +			// menuStrip
   1.421 +			// 
   1.422 +			this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.423 +            this.menuFile,
   1.424 +            this.menuEdit,
   1.425 +            this.menuHelp});
   1.426 +			this.menuStrip.Location = new System.Drawing.Point(0, 0);
   1.427 +			this.menuStrip.Name = "menuStrip";
   1.428 +			this.menuStrip.Size = new System.Drawing.Size(790, 24);
   1.429 +			this.menuStrip.TabIndex = 6;
   1.430 +			this.menuStrip.Text = "menuStrip1";
   1.431 +			// 
   1.432 +			// menuFile
   1.433 +			// 
   1.434 +			this.menuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.435 +            this.miNewArmy,
   1.436 +            this.miOpenArmy,
   1.437 +            this.miSaveArmy,
   1.438 +            this.miSaveArmyAs,
   1.439 +            this.miExportArmyAs,
   1.440 +            this.miCloseArmy,
   1.441 +            this.toolStripSeparator1,
   1.442 +            this.miReloadFiles,
   1.443 +            this.toolStripSeparator2,
   1.444 +            this.miExit});
   1.445 +			this.menuFile.Name = "menuFile";
   1.446 +			this.menuFile.Size = new System.Drawing.Size(33, 20);
   1.447 +			this.menuFile.Text = "&file";
   1.448 +			// 
   1.449 +			// miNewArmy
   1.450 +			// 
   1.451 +			this.miNewArmy.Name = "miNewArmy";
   1.452 +			this.miNewArmy.Size = new System.Drawing.Size(164, 22);
   1.453 +			this.miNewArmy.Text = "&new army";
   1.454 +			this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click);
   1.455 +			// 
   1.456 +			// miOpenArmy
   1.457 +			// 
   1.458 +			this.miOpenArmy.Name = "miOpenArmy";
   1.459 +			this.miOpenArmy.Size = new System.Drawing.Size(164, 22);
   1.460 +			this.miOpenArmy.Text = "&open army";
   1.461 +			this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click);
   1.462 +			// 
   1.463 +			// miSaveArmy
   1.464 +			// 
   1.465 +			this.miSaveArmy.Enabled = false;
   1.466 +			this.miSaveArmy.Name = "miSaveArmy";
   1.467 +			this.miSaveArmy.Size = new System.Drawing.Size(164, 22);
   1.468 +			this.miSaveArmy.Text = "&save army";
   1.469 +			this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click);
   1.470 +			// 
   1.471 +			// miSaveArmyAs
   1.472 +			// 
   1.473 +			this.miSaveArmyAs.Enabled = false;
   1.474 +			this.miSaveArmyAs.Name = "miSaveArmyAs";
   1.475 +			this.miSaveArmyAs.Size = new System.Drawing.Size(164, 22);
   1.476 +			this.miSaveArmyAs.Text = "save army &as...";
   1.477 +			this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click);
   1.478 +			// 
   1.479 +			// miExportArmyAs
   1.480 +			// 
   1.481 +			this.miExportArmyAs.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.482 +            this.miExportArmyAsBasicHTML});
   1.483 +			this.miExportArmyAs.Enabled = false;
   1.484 +			this.miExportArmyAs.Name = "miExportArmyAs";
   1.485 +			this.miExportArmyAs.Size = new System.Drawing.Size(164, 22);
   1.486 +			this.miExportArmyAs.Text = "export army as...";
   1.487 +			// 
   1.488 +			// miExportArmyAsBasicHTML
   1.489 +			// 
   1.490 +			this.miExportArmyAsBasicHTML.Name = "miExportArmyAsBasicHTML";
   1.491 +			this.miExportArmyAsBasicHTML.Size = new System.Drawing.Size(130, 22);
   1.492 +			this.miExportArmyAsBasicHTML.Text = "&basic html";
   1.493 +			this.miExportArmyAsBasicHTML.Click += new System.EventHandler(this.miExportArmyAsBasicHTML_Click);
   1.494 +			// 
   1.495 +			// miCloseArmy
   1.496 +			// 
   1.497 +			this.miCloseArmy.Enabled = false;
   1.498 +			this.miCloseArmy.Name = "miCloseArmy";
   1.499 +			this.miCloseArmy.Size = new System.Drawing.Size(164, 22);
   1.500 +			this.miCloseArmy.Text = "&close army";
   1.501 +			this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click);
   1.502 +			// 
   1.503 +			// toolStripSeparator1
   1.504 +			// 
   1.505 +			this.toolStripSeparator1.Name = "toolStripSeparator1";
   1.506 +			this.toolStripSeparator1.Size = new System.Drawing.Size(161, 6);
   1.507 +			// 
   1.508 +			// miReloadFiles
   1.509 +			// 
   1.510 +			this.miReloadFiles.Name = "miReloadFiles";
   1.511 +			this.miReloadFiles.Size = new System.Drawing.Size(164, 22);
   1.512 +			this.miReloadFiles.Text = "&reload files";
   1.513 +			this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click);
   1.514 +			// 
   1.515 +			// toolStripSeparator2
   1.516 +			// 
   1.517 +			this.toolStripSeparator2.Name = "toolStripSeparator2";
   1.518 +			this.toolStripSeparator2.Size = new System.Drawing.Size(161, 6);
   1.519 +			// 
   1.520 +			// miExit
   1.521 +			// 
   1.522 +			this.miExit.Name = "miExit";
   1.523 +			this.miExit.Size = new System.Drawing.Size(164, 22);
   1.524 +			this.miExit.Text = "e&xit";
   1.525 +			this.miExit.Click += new System.EventHandler(this.miExit_Click);
   1.526 +			// 
   1.527 +			// menuEdit
   1.528 +			// 
   1.529 +			this.menuEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.530 +            this.miUndo,
   1.531 +            this.miRedo});
   1.532 +			this.menuEdit.Name = "menuEdit";
   1.533 +			this.menuEdit.Size = new System.Drawing.Size(36, 20);
   1.534 +			this.menuEdit.Text = "&edit";
   1.535 +			// 
   1.536 +			// miUndo
   1.537 +			// 
   1.538 +			this.miUndo.Enabled = false;
   1.539 +			this.miUndo.Name = "miUndo";
   1.540 +			this.miUndo.Size = new System.Drawing.Size(106, 22);
   1.541 +			this.miUndo.Text = "&undo";
   1.542 +			this.miUndo.Click += new System.EventHandler(this.miUndo_Click);
   1.543 +			// 
   1.544 +			// miRedo
   1.545 +			// 
   1.546 +			this.miRedo.Enabled = false;
   1.547 +			this.miRedo.Name = "miRedo";
   1.548 +			this.miRedo.Size = new System.Drawing.Size(106, 22);
   1.549 +			this.miRedo.Text = "&redo";
   1.550 +			this.miRedo.Click += new System.EventHandler(this.miRedo_Click);
   1.551 +			// 
   1.552 +			// menuHelp
   1.553 +			// 
   1.554 +			this.menuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.555 +            this.miAbout});
   1.556 +			this.menuHelp.Name = "menuHelp";
   1.557 +			this.menuHelp.Size = new System.Drawing.Size(39, 20);
   1.558 +			this.menuHelp.Text = "&help";
   1.559 +			// 
   1.560 +			// miAbout
   1.561 +			// 
   1.562 +			this.miAbout.Name = "miAbout";
   1.563 +			this.miAbout.Size = new System.Drawing.Size(109, 22);
   1.564 +			this.miAbout.Text = "&about";
   1.565 +			this.miAbout.Click += new System.EventHandler(this.miAbout_Click);
   1.566 +			// 
   1.567 +			// mainToolStrip
   1.568 +			// 
   1.569 +			this.mainToolStrip.Dock = System.Windows.Forms.DockStyle.None;
   1.570 +			this.mainToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
   1.571 +            this.bttnNewArmy,
   1.572 +            this.bttnOpenArmy,
   1.573 +            this.bttnSaveArmy,
   1.574 +            this.toolStripSeparator3,
   1.575 +            this.bttnUndo,
   1.576 +            this.bttnRedo});
   1.577 +			this.mainToolStrip.Location = new System.Drawing.Point(0, 24);
   1.578 +			this.mainToolStrip.Name = "mainToolStrip";
   1.579 +			this.mainToolStrip.Size = new System.Drawing.Size(151, 25);
   1.580 +			this.mainToolStrip.TabIndex = 8;
   1.581 +			// 
   1.582 +			// bttnNewArmy
   1.583 +			// 
   1.584 +			this.bttnNewArmy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.585 +			this.bttnNewArmy.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.document_new;
   1.586 +			this.bttnNewArmy.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.587 +			this.bttnNewArmy.Name = "bttnNewArmy";
   1.588 +			this.bttnNewArmy.Size = new System.Drawing.Size(23, 22);
   1.589 +			this.bttnNewArmy.Text = "new army";
   1.590 +			this.bttnNewArmy.Click += new System.EventHandler(this.miNewArmy_Click);
   1.591 +			// 
   1.592 +			// bttnOpenArmy
   1.593 +			// 
   1.594 +			this.bttnOpenArmy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.595 +			this.bttnOpenArmy.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.document_open;
   1.596 +			this.bttnOpenArmy.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.597 +			this.bttnOpenArmy.Name = "bttnOpenArmy";
   1.598 +			this.bttnOpenArmy.Size = new System.Drawing.Size(23, 22);
   1.599 +			this.bttnOpenArmy.Text = "open army";
   1.600 +			this.bttnOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click);
   1.601 +			// 
   1.602 +			// bttnSaveArmy
   1.603 +			// 
   1.604 +			this.bttnSaveArmy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.605 +			this.bttnSaveArmy.Enabled = false;
   1.606 +			this.bttnSaveArmy.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.document_save;
   1.607 +			this.bttnSaveArmy.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.608 +			this.bttnSaveArmy.Name = "bttnSaveArmy";
   1.609 +			this.bttnSaveArmy.Size = new System.Drawing.Size(23, 22);
   1.610 +			this.bttnSaveArmy.Text = "save army";
   1.611 +			this.bttnSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click);
   1.612 +			// 
   1.613 +			// toolStripSeparator3
   1.614 +			// 
   1.615 +			this.toolStripSeparator3.Name = "toolStripSeparator3";
   1.616 +			this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
   1.617 +			// 
   1.618 +			// bttnUndo
   1.619 +			// 
   1.620 +			this.bttnUndo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.621 +			this.bttnUndo.Enabled = false;
   1.622 +			this.bttnUndo.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.edit_undo;
   1.623 +			this.bttnUndo.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.624 +			this.bttnUndo.Name = "bttnUndo";
   1.625 +			this.bttnUndo.Size = new System.Drawing.Size(32, 22);
   1.626 +			this.bttnUndo.Text = "undo";
   1.627 +			this.bttnUndo.ButtonClick += new System.EventHandler(this.miUndo_Click);
   1.628 +			// 
   1.629 +			// bttnRedo
   1.630 +			// 
   1.631 +			this.bttnRedo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   1.632 +			this.bttnRedo.Enabled = false;
   1.633 +			this.bttnRedo.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.edit_redo;
   1.634 +			this.bttnRedo.ImageTransparentColor = System.Drawing.Color.Magenta;
   1.635 +			this.bttnRedo.Name = "bttnRedo";
   1.636 +			this.bttnRedo.Size = new System.Drawing.Size(32, 22);
   1.637 +			this.bttnRedo.Text = "redo";
   1.638 +			this.bttnRedo.ButtonClick += new System.EventHandler(this.miRedo_Click);
   1.639 +			// 
   1.640 +			// catToolStrip
   1.641 +			// 
   1.642 +			this.catToolStrip.Dock = System.Windows.Forms.DockStyle.None;
   1.643 +			this.catToolStrip.Location = new System.Drawing.Point(161, 24);
   1.644 +			this.catToolStrip.Name = "catToolStrip";
   1.645 +			this.catToolStrip.Size = new System.Drawing.Size(111, 25);
   1.646 +			this.catToolStrip.TabIndex = 9;
   1.647 +			this.catToolStrip.Visible = false;
   1.648 +			// 
   1.649 +			// statusBar
   1.650 +			// 
   1.651 +			this.statusBar.Location = new System.Drawing.Point(0, 586);
   1.652 +			this.statusBar.Name = "statusBar";
   1.653 +			this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
   1.654 +            this.sbMainPanel,
   1.655 +            this.sbErrorPanel,
   1.656 +            this.sbPointsPanel});
   1.657 +			this.statusBar.ShowPanels = true;
   1.658 +			this.statusBar.Size = new System.Drawing.Size(790, 22);
   1.659 +			this.statusBar.TabIndex = 1;
   1.660 +			this.statusBar.PanelClick += new System.Windows.Forms.StatusBarPanelClickEventHandler(this.statusBar_PanelClick);
   1.661 +			this.statusBar.DrawItem += new System.Windows.Forms.StatusBarDrawItemEventHandler(this.statusBar_DrawItem);
   1.662 +			// 
   1.663 +			// sbMainPanel
   1.664 +			// 
   1.665 +			this.sbMainPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
   1.666 +			this.sbMainPanel.Color = System.Drawing.SystemColors.WindowText;
   1.667 +			this.sbMainPanel.Name = "sbMainPanel";
   1.668 +			this.sbMainPanel.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
   1.669 +			this.sbMainPanel.Width = 473;
   1.670 +			// 
   1.671 +			// sbErrorPanel
   1.672 +			// 
   1.673 +			this.sbErrorPanel.Color = System.Drawing.SystemColors.WindowText;
   1.674 +			this.sbErrorPanel.Name = "sbErrorPanel";
   1.675 +			this.sbErrorPanel.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
   1.676 +			this.sbErrorPanel.Width = 150;
   1.677 +			// 
   1.678 +			// sbPointsPanel
   1.679 +			// 
   1.680 +			this.sbPointsPanel.Color = System.Drawing.SystemColors.WindowText;
   1.681 +			this.sbPointsPanel.Name = "sbPointsPanel";
   1.682 +			this.sbPointsPanel.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw;
   1.683 +			this.sbPointsPanel.ToolTipText = "current points total";
   1.684 +			this.sbPointsPanel.Width = 150;
   1.685 +			// 
   1.686 +			// toolStripPanel
   1.687 +			// 
   1.688 +			this.toolStripPanel.Dock = System.Windows.Forms.DockStyle.Top;
   1.689 +			this.toolStripPanel.Location = new System.Drawing.Point(0, 24);
   1.690 +			this.toolStripPanel.Name = "toolStripPanel";
   1.691 +			this.toolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
   1.692 +			this.toolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0);
   1.693 +			this.toolStripPanel.Size = new System.Drawing.Size(790, 0);
   1.694 +			// 
   1.695 +			// FrmMain
   1.696 +			// 
   1.697 +			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
   1.698 +			this.ClientSize = new System.Drawing.Size(790, 608);
   1.699 +			this.Controls.Add(this.mainToolStrip);
   1.700 +			this.Controls.Add(this.toolStripPanel);
   1.701 +			this.Controls.Add(this.statusBar);
   1.702 +			this.Controls.Add(this.catToolStrip);
   1.703 +			this.Controls.Add(this.menuStrip);
   1.704 +			this.Icon = ((System.Drawing.Icon) (resources.GetObject("$this.Icon")));
   1.705 +			this.IsMdiContainer = true;
   1.706 +			this.MainMenuStrip = this.menuStrip;
   1.707 +			this.Menu = this.mainMenu;
   1.708 +			this.Name = "FrmMain";
   1.709 +			this.Text = "WarFoundry";
   1.710 +			this.Load += new System.EventHandler(this.FrmMain_Load);
   1.711 +			this.menuStrip.ResumeLayout(false);
   1.712 +			this.menuStrip.PerformLayout();
   1.713 +			this.mainToolStrip.ResumeLayout(false);
   1.714 +			this.mainToolStrip.PerformLayout();
   1.715 +			((System.ComponentModel.ISupportInitialize) (this.sbMainPanel)).EndInit();
   1.716 +			((System.ComponentModel.ISupportInitialize) (this.sbErrorPanel)).EndInit();
   1.717 +			((System.ComponentModel.ISupportInitialize) (this.sbPointsPanel)).EndInit();
   1.718 +			this.ResumeLayout(false);
   1.719 +			this.PerformLayout();
   1.720 +
   1.721  		}
   1.722  		#endregion
   1.723  
   1.724 @@ -948,6 +948,7 @@
   1.725  			int catCount = cats.Length;
   1.726  			Category cat;
   1.727  			IBBToolStripButton[] categoryButtons = new IBBToolStripButton[catCount];
   1.728 +			int buttonWidths = 0;
   1.729  
   1.730  			for (int i = 0; i < catCount; i++)
   1.731  			{
   1.732 @@ -959,8 +960,12 @@
   1.733  				button.Enabled = false;
   1.734  				button.Click += new EventHandler(CreateUnitForCategoryButtonClick);
   1.735  				categoryButtons[i] = button;
   1.736 +				buttonWidths += button.Width;
   1.737  			}
   1.738  
   1.739 +			log.Debug("Toolstrip width: " + catToolStrip.Width);
   1.740 +			log.Debug("Button widths: " + buttonWidths);
   1.741 +
   1.742  			this.Invoke(new ArrayMethodInvoker<IBBToolStripButton>(catToolStrip.Items.AddRange), new object[]{ categoryButtons });
   1.743  		}
   1.744