Changes

Jump to navigation Jump to search

Changes in OS 3.2

974 bytes added, 14:01, 5 June 2012
no edit summary
Line 30: Line 30:     
==D2Editor==
 
==D2Editor==
[[D2Editor|D2Editor]] has been greatly improved <br />  
+
[[D2Editor|D2Editor]] has been greatly improved :<br />
 +
* [[D2Editor:createChemBox]]()
 +
* [[D2Editor:createMathBox]]()
 +
* [[D2Editor:getExpressionSelection]]()
 +
* [[D2Editor:hasFocus]]()
 +
* [[D2Editor:isVisible]]()
 +
* [[D2Editor:registerFilter]](handlerTable)
 +
* [[D2Editor:setDisable2DinRT]]
 +
* [[D2Editor:setBorder]]
 +
* [[D2Editor:setBorderColor]]
 +
* [[D2Editor:setColorable]]
 +
* [[D2Editor:setTextColor]](color)
 +
* [[D2Editor:setTextChangeListener]]
 +
* [[D2Editor:setSizeChangeListener]](function(editor, w, h))
 +
* [[D2Editor:setSelectable]](true or false)
 +
* [[D2Editor:setReadOnly]](true or false)
 +
* [[D2Editor:setVisible]](true or false)
 +
* [[D2Editor:setMainFont]](family, style)
 +
* [[D2Editor:setWordWrapWidth]](width)
    
==Require==
 
==Require==
Line 52: Line 70:  
* [[platform.registerErrorHandler]], this allows you to take actions when an error occurs in your document.  
 
* [[platform.registerErrorHandler]], this allows you to take actions when an error occurs in your document.  
 
* [[platform.window:setFocus]], regain focus in your script.<br />
 
* [[platform.window:setFocus]], regain focus in your script.<br />
 +
* [[platform.hw]](), returns a number corresponding to the device the scripts is running on.
 +
 +
==Toolpalette==
 +
If the [[platform.apilevel|APILevel]] is set to '2.0', the names of toolpalette items may be changed dynamically while the program is running.
 +
Calling toolpalette.register(nil) deactivates the toolpalette.
    
==Variable==
 
==Variable==
 
* [[var.recallAt]], fetch data from a certain spot in a list or matrix<br />
 
* [[var.recallAt]], fetch data from a certain spot in a list or matrix<br />
 
* [[var.makeNumericList]], create a list in the symbol table. The create list will work much more efficient with other var functions.
 
* [[var.makeNumericList]], create a list in the symbol table. The create list will work much more efficient with other var functions.

Navigation menu