Changes

Jump to navigation Jump to search

Overview of the API

3 bytes removed, 12:42, 31 May 2011
Line 264: Line 264:  
*'''[[D2Editor.getText]]'''() returns the RichText value  
 
*'''[[D2Editor.getText]]'''() returns the RichText value  
 
*'''[[D2Editor.setReadOnly]]'''(bool) bool : true/false : If true, the content becomes read-only, i.e. non-editable.  
 
*'''[[D2Editor.setReadOnly]]'''(bool) bool : true/false : If true, the content becomes read-only, i.e. non-editable.  
*'''[[D2Editor.setFormattedText]]'''() - ?
+
*'''[[D2Editor.setFormattedText]]'''() - ?
    
Example of a valid function using the D2Editor  
 
Example of a valid function using the D2Editor  
<source lang="1ua"> function createRichTextBox
+
<source lang="lua">
 +
function createRichTextBox
 
  box = D2Editor.newRichText()
 
  box = D2Editor.newRichText()
 
  box:move(50, 50)
 
  box:move(50, 50)
Line 273: Line 274:  
  box:setText("Hello World !")
 
  box:setText("Hello World !")
 
  end</source>
 
  end</source>
 +
 
== External Links  ==
 
== External Links  ==
  

Navigation menu