Quote:
Originally Posted by 405hp
Look in
\CodeGear\Delphi for PHP\2.0\vcl\packages\standard.package.php
\CodeGear\Delphi for PHP\2.0\plugins
|
I reserched this files. and Boolean property is ok, i learned.
But.
I am not doing "registerPropertyValues".
This my codes...
--------------------xxx.package.php-------------------------------
registerBooleanProperty("GoogleMapEx","OverviewMap ");
registerPropertyValues("GoogleMapEx","marker.color ",array('blue','red','yellow'));
-------------------------------------------
i added it in xxx.package.php
but i can not add and convert code in xxx.inc.php.
my code in xxx.inc.php
----------------xxx.inc.php-------------------
<?php
require_once("vcl/vcl.inc.php");
use_unit("controls.inc.php");
class GoogleMapEx extends Control
{
function __construct($aowner = null)
{
parent::__construct($aowner);
$this->ControlStyle="csVerySlowRedraw=1";
}
//--- my code starts>>>
protected $_marker.color='blue';
function getmarker.color() { return $this->_marker.color; }
function setmarker.color($value) { $this->_marker.color=$value; }
function defaultmarker.color() { return 'blue'; }
protected $_marker.zzz=125;
function getmarker.zzz() { return $this->_marker.zzz; }
function setmarker.zzz($value) { $this->_marker.zzz=$value; }
function defaultmarker.zzz() { return 125; }
//---- my code end
?>
----------------------------------------------------
Please can You convert it ? because vcl's codes are very mixed / complex.