[mapguide-commits] r5629 - trunk/Tools/Maestro/Maestro.Editors/Fusion

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Mar 16 06:32:06 EDT 2011


Author: jng
Date: 2011-03-16 03:32:06 -0700 (Wed, 16 Mar 2011)
New Revision: 5629

Modified:
   trunk/Tools/Maestro/Maestro.Editors/Fusion/FlexLayoutSettingsCtrl.cs
Log:
Fix #1627: Give ListView focus which allows the selected template to be highlighted


Modified: trunk/Tools/Maestro/Maestro.Editors/Fusion/FlexLayoutSettingsCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Fusion/FlexLayoutSettingsCtrl.cs	2011-03-16 10:26:13 UTC (rev 5628)
+++ trunk/Tools/Maestro/Maestro.Editors/Fusion/FlexLayoutSettingsCtrl.cs	2011-03-16 10:32:06 UTC (rev 5629)
@@ -96,6 +96,8 @@
                 tplImageList.Images.Add(tpl.PreviewImageUrl, img);
             }
 
+            lstTemplates.Focus(); //Item doesn't get selected when ListView doesn't have focus
+
             foreach (var tpl in templates.TemplateInfo)
             {
                 var item = new ListViewItem();
@@ -104,10 +106,10 @@
                 item.Text = tpl.Name;
                 item.ImageKey = tpl.PreviewImageUrl;
 
+                lstTemplates.Items.Add(item);
+
                 if (tpl.LocationUrl == _flexLayout.TemplateUrl)
                     item.Selected = true;
-
-                lstTemplates.Items.Add(item);
             }
         }
 



More information about the mapguide-commits mailing list