<?
class frmThemeBox extends MForm
{
	function __construct()
    {   
		parent::__construct('MThemeBox');
	}

    public function createFields()
	{
       $space = new MSpacer('15px');
       $content = new MLabel('Content of MThemeBox (a MLabel)');
	   $box1 = new MThemeBox('MThemeBox Title 1 - default', $content);
       $box2 = new MThemeBox('MThemeBox Title 2 - with style: backgroundcolor', $content); 
       $box2->backgroundColor ='#CCF';
       $box3 = new MThemeBox('MThemeBox Title 3 - style: width', $content); 
       $box3->width ='50%';
       $box4 = new MThemeBox('MThemeBox Title 4 - style: width,float', $content); 
       $box4->width ='50%';
       $box4->float ='right';
       $fields = array( $box1, $space, $box2, $space, $box3, $space, $box4, $space);
	   $this->setFields($fields);
	   $this->defaultButton = False;
	}
}
?>