View Single Post
  #5 (permalink)  
Old 14th January 2009, 09:49
magicturk magicturk is offline
D4PHP Newbie
 
Join Date: Jan 2009
Posts: 9
magicturk is on a distinguished road
Default

Quote:
Originally Posted by 405hp View Post
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.
Reply With Quote
Sponsored Links