Quantcast
Channel: Сообщество PHP DevelStudio - среда разработки программ
Viewing all articles
Browse latest Browse all 6336

проблема с __Set

$
0
0
Привет всем!
сегодня столкнулся с проблемой
тема ранее : http://community.develstudio.ru/show...81%D1%82%D0%B2

PHP код:

Class Test Extends TScrollBox
{
 Public 
$class_name_ex __CLASS__;
 Private 
$Shape;
 Public Function 
__construct($owner nil$init True$self nil)
 {
  
parent::__construct($owner$init$self);
  IF (
$init)
  {
   
$this->600;
   
$this->250;
   
$this->AutoSize False;
   
$this->AutoScroll False;
   
$this->BorderStyle bsNone;
   
$this->Color clWhite;
   
$this->Shape = New TShape;
   
$this->Shape->Parent $this;
   
$this->$Shape->$this->Position;
   
$this->Shape->0;
   
$this->Shape->50;
   
$this->Shape->50;
  }
 }

 Public Function 
__Set($Name$Value)
 {
  IF (
$Name == 'Position' || $Name 'position')
  {
   
$this->Shape->$Value;
  }
  Else
  {
   
$this->$Name $Value;
  }
 }
}


$New = New Test;
$New->Parent c("Form1"); 

скажите пожалуйста , почему объект не появляется на форме?

Viewing all articles
Browse latest Browse all 6336

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>