本文整理汇总了PHP中Picture::setStyle方法的典型用法代码示例。如果您正苦于以下问题:PHP Picture::setStyle方法的具体用法?PHP Picture::setStyle怎么用?PHP Picture::setStyle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Picture
的用法示例。
在下文中一共展示了Picture::setStyle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addDraggableTranslationEditor
private function addDraggableTranslationEditor($label_name, $label_value)
{
$label_input = new TextArea($this->form);
$label_input->setAutoHeight();
$label_input->setValue(str_replace("\\'", "'", $label_value));
$label_input->setName("TextArea_" . $label_name)->setWidth(320);
// Saved position of the label when dragged
$hdn_label = new Hidden($this->form, "Hdn_Position_" . $label_name);
$hdn_label->setValue(sizeof($this->array_translation_position) + 1);
$this->array_translation_position[$label_name] = $hdn_label;
// Create draggable label object
$translate_obj = new Object();
$translate_obj->setWidth(588)->setId("Draggable_" . $label_name);
$pic_drag = new Picture("wsp/img/drag_arrow_16x16.png", 16, 16, 0, Picture::ALIGN_ABSMIDDLE);
$pic_drag->setStyle("cursor:pointer;");
$label_obj = new Object($pic_drag, $label_name . ": ");
$label_obj->setWidth(250)->setStyle("float: left;");
$translate_obj->add($label_obj, $hdn_label, $label_input);
if (!$this->btn_save->isClicked() && !$this->sort_label_event->isSorted() && !$this->btn_add_label->isClicked()) {
$this->translate_area->add($translate_obj);
}
$this->array_translation_input[$label_name] = $label_input;
}