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

Динамические объекты

$
0
0
помогите очень
вот код
PHP код:

$arr[] = 'asd
asd
asd
asda
sd
asd'
;
$arr[] = 'asd
asd
asd
asda
sd
asd'
;
$count count($arr);
for(
$i=0,$y=10 $i<$count $i++,$y+=60){
$text $arr[$i];
$l = new TLabel;
        
$l->caption $text;
        
$l->parent c("scrollBox2");
        
$l->font->color clWhite;
        
$l->transparent true;
        
$l->$p->70;
        
$l->$p->$p->/;
        
$l->Name 'lb_'.$i;
        
$p = new TShape;
$p->parent c("scrollBox2");
$p->600;
//$p->h = 50;
$p->$l->h;
$p->3;
//$p->y = $y;
$p->$l->y+50;
$p->brushColor 0xf8a823;
$p->penColor 0xf8a823;
$p->toBack();
$p->bevelOuter bvNone;
$p->onMouseEnter = function($self) {
            
$self c($self);
            
$self->brushColor 0x80ff;
            
$self->penColor 0x80ff;
};

$p->onMouseLeave = function($self) {
            
$self c($self);
            
$self->brushColor 0xf8a823;
            
$self->penColor 0xf8a823;
};

$p->onMouseDown = function($self)use($i,$arr){
$self c($self);
$er $arr[$i];
//pre($er);
pre($self->name);
};
$p->Name 'pb_'.$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>