Source for file TScroll.php
Documentation is available at TScroll.php
namespace
Adianti \
Widget \
Container ;
use
Adianti \
Widget \
Base \
TStyle ;
* Scrolled Window: Allows to add another containers inside, creating scrollbars when its content is bigger than its visual area
* @author Pablo Dall'Oglio
* @copyright Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)
* @license http://www.adianti.com.br/framework-license
$this -> { 'id' } =
'tscroll_' .
mt_rand ( 1000000000 , 1999999999 ) ;
$this -> transparency =
FALSE ;
* @param $width Panel's width
* @param $height Panel's height
public function setSize ( $width , $height )
* Set the scrolling margin
$this -> transparency =
$bool ;
if ( ! $this -> transparency )
$this -> { 'style' } .=
';border: 1px solid #c2c2c2' ;
$this -> { 'style' } .=
';background: #ffffff' ;
$this -> { 'style' } .=
" ;padding: {$this -> margin } px
" ;
if ( ! empty ( $this -> width ))
$this -> { 'style' } .=
is_numeric ( $this -> width ) ?
" ;width:{$this -> width } px
" :
" ;width:{$this -> width } " ;
if ( ! empty ( $this -> height ))
$this -> { 'style' } .=
is_numeric ( $this -> height ) ?
" ;height:{$this -> height } px
" :
" ;height:{$this -> height } " ;
$this -> { 'class' } .=
" tscroll" ;