Delphi For PHP Forums    

Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish By Hybr!d

Go Back   Delphi-PHP Forums > Delphi For PHP > VCL4PHP
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

VCL4PHP VCL for PHP. Questions or comments about the Visual Component Library for PHP, post them here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 8th January 2009, 09:34
D4PHP Newbie
 
Join Date: Jan 2009
Posts: 7
magicturk is on a distinguished road
Question adding problem in VCL Properties

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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 8th January 2009, 14:16
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 2,681
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Your best examples are right in the vcl.

Just look at label and combo box and see how they did it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 8th January 2009, 16:23
D4PHP Newbie
 
Join Date: Jan 2009
Posts: 7
magicturk is on a distinguished road
Default

sorry. but i stared 1 week ego. I am starter. I looked VCL's help, and i use it. but i didnt it .

Please, short and easy code send to me

sorry my bad english...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 8th January 2009, 17:49
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 2,681
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Look in
\CodeGear\Delphi for PHP\2.0\vcl\packages\standard.package.php

\CodeGear\Delphi for PHP\2.0\plugins
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 14th January 2009, 09:49
D4PHP Newbie
 
Join Date: Jan 2009
Posts: 7
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 14th January 2009, 13:12
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 2,681
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

This should help:
Delphi for PHP VCL for PHP Charting components - Subproperties
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 02:23.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use