<?php
/**
* This file is part of the VCL for PHP project
*
* Copyright (c) 2004-2008 qadram software S.L. <support@qadram.com>
*
* Checkout AUTHORS file for more information on the developers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
*/
//Includes
require_once("vcl/vcl.inc.php");
//Class definition
{
public $btnResetPanelProperties = null;
public $Memo2 = null;
public $edtPanelColor = null;
public $ckbShowHintsOnPanel = null;
public $Label3 = null;
public $btnSetPanelColor = null;
public $Panel3 = null;
public $Memo1 = null;
public $Label2 = null;
public $Panel2 = null;
public $ckbShowHint = null;
public $cmbPageFont = null;
public $edtPageColor = null;
public $btnChangePageFont = null;
public $Edit2 = null;
public $btnChangePageColor = null;
public $Label1 = null;
public $Panel1 = null;
function btnResetPanelPropertiesClick($sender, $params)
{
$this->Panel3->ParentFont = true;
$this->Panel3->ParentColor = true;
$this->Panel3->ParentShowHint = true;
// uncheck the checkbox not to cause confusions...
$this->ckbShowHintsOnPanel->Checked = false;
}
function btnSetPanelColorClick($sender, $params)
{
$this->Panel3->Color = $this->edtPanelColor->Text;
}
function ckbShowHintsOnPanelClick($sender, $params)
{
$this->Panel3->ShowHint = $this->ckbShowHintsOnPanel->Checked;
}
function ckbShowHintClick($sender, $params)
{
$this->ShowHint = $this->ckbShowHint->Checked;
}
function btnChangePageFontClick($sender, $params)
{
switch ($this->cmbPageFont->ItemIndex)
{
case "defaultfont":
{
$this->Font->family = "Verdana";
$this->Font->size = "10px";
$this->Font->color = "";
$this->Font->weight = "";
$this->Font->align = "taNone";
$this->Font->style = "";
$this->Font->variant = "";
$this->Font->lineheight = "";
break;
}
case "bold":
$this->Font->weight = "bold";
break;
case "size":
$this->Font->size = "14px";
break;
case "case":
break;
}
}
function btnChangePageColorClick($sender, $params)
{
$this->Color = $this->edtPageColor->Text;
}
}
global $application;
global $Unit3;
//Creates the form
$Unit3 = new Unit3($application);
//Read from resource file
$Unit3->loadResource(__FILE__);
//Shows the form
$Unit3->show();
?>