Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it L'avatar di alpeweb
    Registrato dal
    Oct 2002
    Messaggi
    1,691

    leading e campi autosize

    il problema è che quando inserisco textfield.autoSize=1
    e leading ipotesi a 10 mi rispetta l'interlinea indicato
    solo dopo il primo a capo, dal secondo in poi non gliene può
    fregare di meno e me lo rimette al valore di default.
    Qualche dritta????

    questo il codicillo:
    myformat = new TextFormat();
    //myformat.getTextExtent()
    myformat.font = _root.importatesto.stile;
    myformat.size = _root.importatesto.punti;
    myformat.bold = _root.importatesto.grassetto;
    myformat.leading =_root.importatesto.interlinea;
    myformat.italic=_root.importatesto.italico;
    myformat.color="0x"+_root.importatesto.esadecimale ;
    //myformat.bullet=0
    myformat.align=_root.importatesto.allinea;
    if(_root.importatesto.altezza=="auto"){
    if(_root.importatesto.larg>1){
    this.elemento._width=_root.importatesto.larg*2.85
    this.elemento.wordWrap=true
    }
    this.elemento.autoSize = "left";
    }
    else {
    this.elemento.autoSize = false;
    this.elemento._width=_root.importatesto.larg*2.85
    this.elemento._height=_root.importatesto.altezza*2 .85
    this.elemento.wordWrap=true
    }

    this.elemento.text="text"
    this.elemento.border=1
    this.elemento.type="Input"
    this.elemento.embedFonts=true
    this.elemento.multiline=true
    this.elemento._rotation=_root.importatesto.gradi;
    this.elemento._focusrect=1
    this.elemento.html=1;
    this.elemento.setTextFormat(myformat);
    h=this.elemento._height;
    h_tot=function(){
    h_campo=this.elemento._height/2.85;

    }
    this.elemento.onChanged = function() {
    h_tot();
    }

  2. #2
    Utente di HTML.it L'avatar di alpeweb
    Registrato dal
    Oct 2002
    Messaggi
    1,691
    nessuno ha voglia di provare?????

  3. #3
    Utente di HTML.it L'avatar di alpeweb
    Registrato dal
    Oct 2002
    Messaggi
    1,691
    AIUTOooooooooooooooooooooooooooOOO

  4. #4
    Utente di HTML.it L'avatar di alpeweb
    Registrato dal
    Oct 2002
    Messaggi
    1,691
    ripropongo per l'ultima volta.
    Su ragazzucci qualcuno di buona volontà??

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.