Source for file LImageButton.php
Documentation is available at LImageButton.php
* @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
* @copyright 2005, diemeisterei GmbH. All rights reserved.
* @author $Author: schmunk $
* @version $Revision: 640 $ $Date: 2007-02-25 15:42:41 +0100 (Sun, 25 Feb 2007) $
* @package Phundament.Packages
* Displays an Image Button that has an overlib help text
* @package System.Web.UI.WebControls
* Turn overlib help system on/off
private $overlib_enabled;
* @return wheter overlib tooltips are enablead or not
return $this->getViewState("OL_enable", true);
$this->setViewState("OL_enable", $value, true);
* @return overlib tooltip
return $this->getViewState("OL_tt");
$this->setViewState("OL_tt", $value);
* prepares tooltip if enabled
parent::onPreRender($param);
if ($this->OverlibEnabled && $this->ToolTip && !$this->OverlibToolTip)
if ($this->OverlibEnabled)
$this->OverlibToolTip = $this->ToolTip;
if ($this->OverlibEnabled)
$script_url = $this->publishAsset("overlib/overlib.js");
$bg_url = $this->publishAsset("icons/bg_75black.png");
$scriptMgr = $this->Page->ClientScript;
$scriptMgr->registerScriptFile("overlib", $script_url);
$ol = "RELX, 10, RELY, -10, WIDTH, '500', HEIGHT, '30', TEXTFONT, 'Arial', TEXTSIZE, '1.3em', TEXTCOLOR, '#FFFFFF', BACKGROUND, '$bg_url'";
$this->Attributes->add("onmouseover", "overlib('". $this->getOverlibToolTip(). "', $ol);");
$this->Attributes->add("onmouseout", "nd();");
private function parseToolTip()
while($brick && !($brick instanceof LBrick)) $brick = $brick->Parent;
while($cell && !($cell instanceof LCell)) $cell = $cell->Parent;
$my_smarty["{brick_id}"] = $brick->BrickObject->getId();
$my_smarty["{brick_name}"] = $brick->getDescriptiveName();
$my_smarty["{cell_position}"] = $cell->getId();
$this->setToolTip(strtr($this->getToolTip(), $my_smarty));
|