MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Spécifications Page 486

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 692
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 485
486
dreamweaver.getPreferenceString()
Availability
Dreamweaver MX
Description
Lets you retrieve a string preference setting that you stored for an extension.
Arguments
section key default_value
section a string that specifies the preferences section that contains the entry.
key a string that specifies the value to be retrieved.
default_value the default string value that Dreamweaver returns if it cannot find the entry.
Returns
The requested preference string, or if the string cannot be found, the default value.
Example
var txtEditor = getExternalTextEditor(); //set default text Editor value
txtEditor = dreamweaver.getPreferenceString("My Extension", "Text Editor",
txtEditor);
dreamweaver.setPreferenceInt()
Availability
Dreamweaver MX
Description
Lets you set an integer preference setting for an extension, to be stored with Dreamweaver
preferences when Dreamweaver is not running.
Arguments
section, key, new_value
section a string that specifies the preferences section that contains the entry. If the section
does not exist, Dreamweaver creates it.
key a string that specifies the entry into which the value is to be written. If the entry does not
exist, Dreamweaver creates it.
new_value an integer that contains the integer preference value that is to be saved.
Returns
true if successful; false otherwise.
Example
var snapDist = getSnapDistance();
if(snapDist > 0)
{
dreamweaver.setPreferenceInt("My Extension", "Snap Distance", snapDist);
}
Vue de la page 485
1 2 ... 481 482 483 484 485 486 487 488 489 490 491 ... 691 692

Commentaires sur ces manuels

Pas de commentaire