Line 7: |
Line 7: |
| == Syntax == | | == Syntax == |
| | | |
− | D2Editor:'''resize'''(width, height)<br> sets the height and width of an editor | + | D2Editor:'''resize'''(width, height) |
| | | |
| == Example == | | == Example == |
| | | |
| <source lang="lua" highlight=4> | | <source lang="lua" highlight=4> |
− | function on.create() | + | function on.construction() -- or on.create if OS 3.1 |
| editor = D2Editor.newRichText() | | editor = D2Editor.newRichText() |
| editor:move(0,0) | | editor:move(0,0) |
Line 31: |
Line 31: |
| | | |
| A very simple text editor (its actually more complicated that it should be, but it shows the basics). | | A very simple text editor (its actually more complicated that it should be, but it shows the basics). |
| + | |
| | | |
| == See also == | | == See also == |
− | | + | <categorytree mode=pages>D2Editor</categorytree> |
− | *[[D2Editor.getExpression]]() :
| |
− | *[[D2Editor.getExpressionSelection]]() :
| |
− | *[[D2Editor.isVisible]]() :
| |
− | *[[D2Editor.newRichText]]() :
| |
− | *[[D2Editor.move]]() :
| |
− | *[[D2Editor.setExpression]]() :
| |
− | *[[D2Editor.setFocus]]() :
| |
− | *[[D2Editor.setFontSize]]() :
| |
− | *[[D2Editor.setFormattedText]]() :
| |
− | *[[D2Editor.setMainFont]]() :
| |
− | *[[D2Editor.setReadOnly]]() :
| |
| | | |
| [[Category:D2Editor]] | | [[Category:D2Editor]] |