![]() |
|
|
|||||||
| VCL4PHP VCL for PHP. Questions or comments about the Visual Component Library for PHP, post them here! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello everbody;
1. I want to insert sub properties in my VCL. for example Font in Label properties font's sub properties is a lot of it ( size, height,....) I want to make like it. You can see attach. file : sub_properties.jpeg sub_Properties.JPG 2. I want to insert ready constant in combobox in my VCL properties. for example Alignment in Label properties Alignment's in have a lot of ready constant in properties (agNone, ag Left,...) I want to make like it. You can see attach. file : comboboxinproperties.jpeg comboboxinproperties.JPG Please send tome easy sample code. thank you very much your helps... |
|
|||
|
Quote:
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. |
|
||||
|
This should help:
Delphi for PHP VCL for PHP Charting components - Subproperties |