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

Красивый список - функции

$
0
0
Помните я создавал тему про этот список?
Так вот
Я хочу добавить функцию в эти все шейпы , но код не работает ((
Кто поможет?

PHP код:

$List c("listBox1");
$scrollBox1 c("scrollBox1");
$i 0;
foreach(
$List->items->lines as $v) {
    
$v trim($v);
    if(
$v) {
        
$shape = new TShape;
        
$shape->parent $scrollBox1;
        
$shape->2;
        
$shape->72*($i++);
        
$shape->527;
        
$shape->70;
        
$shape->brushColor 0xf8a823;
        
$shape->penColor 0xf8a823;
        
$shape->Name 'shape__'.$i;
        
$shape->onMouseEnter = function(){
        
c('shape__'.$i)->brushColor 0x80ff;//Вот тут не робит
        
c('shape__'.$i)->penColor 0x80ff;// И тут тоже(( Япытался всавить всякие имена , но не получалось...

        
};
        
$leb = new TLabel;
        
$leb->caption $v;
        
$leb->parent $scrollBox1;
        
$leb->font->color clWhite;
        
$leb->$shape->2;
        
$leb->$shape->$shape->/;
        
$leb->Name 'label__'.$i;
    }



Viewing all articles
Browse latest Browse all 6336

Trending Articles



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