Changes

Jump to navigation Jump to search

D2Editor:setExpression

24 bytes added, 12:47, 11 June 2011
Line 20: Line 20:  
function on.charIn(char)
 
function on.charIn(char)
 
currentText = editor:getText()
 
currentText = editor:getText()
editor:setText(currentText .. char)
+
editor:setExpression(currentText .. char) -- or setText(...)
 
--Add char to the editor
 
--Add char to the editor
 
end
 
end
Line 30: Line 30:  
</source>  
 
</source>  
   −
A very simple text editor (its actually more complicated that it be, but it shows the basics).  
+
A very simple text editor (its actually more complicated that it be, but it shows the basics).
    
== See also  ==
 
== See also  ==

Navigation menu