Помогите вот код:
Надо чтоб при клике по картинке ее название копировалось в буфер
PHP код:
if( file_exists('Smiles') ){
$x1 = 0;
$y1 = 32;
dir_search("Smiles/", $files, ".gif", true, true);
foreach ($files as $file){
if (strpos($file, '.')!==false){
$image = new TImage( c("Form1"));
$image->parent = c("Form1");
//pre($file);
$image->loadFromFile($file);
$image->w = 20;
$image->name = basenameNoExt( $file); //Имя
$image->h = 20;
$image->x=0 + $x1;
$image->y=0 + $y1;
//$image->onClick = '';
if( $x1 > 280 ){
$y1+= 20;
$x1 = 0;
}else{
$x1 +=20;
}
//c("listBox1")->items->add( basename($file));
}
}
}else{
messageDlg("Папки не существует", mtError, MB_OK);
}
c("Form1")->autoSize = 1;
c("panel1")->align = alTop;