     public function get lastIndexInView():int
     {
         return horizontalLayout.lastIndexInView;
-    } 
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Properties
+    //
+    //--------------------------------------------------------------------------
+    
+    //----------------------------------
+    //  layout
+    //----------------------------------    
+        
+    /**
+     *  @private
+     */
+    override public function set layout(value:LayoutBase):void
+    {
+        throw(new Error(resourceManager.getString("components", "layoutReadOnly")));
+    }
     
     //--------------------------------------------------------------------------
     //

package spark.components
{
import flash.events.Event;
import spark.components.Group;
import spark.layout.HorizontalLayout;

[IconFile("HGroup.png")]


     */  
    public function HGroup():void
    {
        super();
        super.layout = new HorizontalLayout();
    }
    
    private function get horizontalLayout():HorizontalLayout
