set_attributo('class',$classe); $this->set_MyType('MySlider'); } /** Setta la larghezza e l'altezza in pt * @param integer $width * @param integer $height */ function set_size($width,$height) { $this->width=$width; $this->height=$height; return $this; } /** Setta se bordare l'oggetto * @param boolean $bordatura default=true */ function set_bordo($bordatura) { $this->bordatura=(int) $bordatura; return $this; } /** Setta di quanto devono essere distanziate le 'tacche' * @param int $ticks default=1 */ function set_ticks($ticks) { $this->tick=(int) $ticks; return $this; } /** Setta stile grafico dell'oggetto * @param [0..3] $stile default=0 */ function set_stileGrafico($stile) { $this->stile=(int) $stile; return $this; } /** Setta orientamento 0=orizzontale, 1=verticale * @param [0..1] $orientamento default=0 */ function set_orientamento($orientamento) { $this->orientamento=(int) $orientamento; return $this; } /** Restituisce il campo in html pronto per la visualizzazione * @return string */ function get_Html () { if ($get_html=$this->Metodo_ridefinito['get_Html']['metodo']) return $this->$get_html($this->Metodo_ridefinito['get_Html']['parametri']); if (stripos($_SERVER['HTTP_USER_AGENT'],'msie')!==false && stripos($_SERVER['HTTP_USER_AGENT'],'win')!==false ) { if ($this->width) $extra.=" width='".$this->width."' "; else $extra.=" width='".(($this->max-$this->min)*2)."' "; if ($this->height) $extra.=" height='".$this->height."' "; return ' stringa_attributi().'> '; } else { for ($i=$this->min;$i<=$this->max;$i++) $opz[$i]=$i; $sel=new MySelect($this->get_name(),$this->get_value(),$opz,$this->get_attributo('class')); return $this->jsAutotab().$sel->get_Html(); } } } ?>