Difference between revisions of "Editbox"

From Lianjapedia
Jump to: navigation, search
m (Yvonne.milne moved page Visage Application Framework - Editbox to Editbox without leaving a redirect)
Line 1: Line 1:
 +
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
 +
 
====Properties====
 
====Properties====
  
Line 11: Line 13:
 
|Value
 
|Value
 
|RW
 
|RW
|
+
|Character
|
+
|Object's text contents
 
|-
 
|-
 
|Text
 
|Text
 
|RW
 
|RW
|
+
|Character
|
+
|Object's text in plain text
 
|-
 
|-
 
|HTML
 
|HTML
 
|RW
 
|RW
|
+
|Character
|
+
|Object's text in HTML
 +
|-
 +
|Alignment
 +
|RW
 +
|Numeric
 +
|Alignment: 0 = left, 1 = right, 2 = center
 
|-
 
|-
 
|Readonly
 
|Readonly
 
|RW
 
|RW
|
+
|Boolean
|
+
|Whether text is readonly
 
|-
 
|-
|Wordwrap
+
|WordWrap
 
|RW
 
|RW
|
+
|Boolean
|
+
|Whether text is word-wrapped
 
|-
 
|-
 
|Modified
 
|Modified
 
|RW
 
|RW
|
+
|Boolean
|
+
|Whether text has been modified
 
|-
 
|-
|Linecount
+
|LineCount
 
|R
 
|R
|
+
|Numeric
|
+
|Number of lines
 
|-
 
|-
|Linenumber
+
|LineNumber
 
|R
 
|R
|
+
|Numeric
|
+
|Current line number
 
|-
 
|-
|Columnnumber
+
|ColumnNumber
 
|R
 
|R
|
+
|Numeric
|
+
|Current column number
 
|-
 
|-
|Selectonentry
+
|SelectOnEntry
 
|RW
 
|RW
|
+
|Boolean
|
+
|Whether text is selected when object is entered
 
|-
 
|-
 
|}
 
|}
Line 71: Line 78:
 
|-
 
|-
 
|Print
 
|Print
|
+
|None
|
+
|Print text contents
 
|-
 
|-
 
|Append
 
|Append
|
+
|text as Character
|
+
|Add the specified text to the end of the existing text
 
|-
 
|-
 
|Cut
 
|Cut
|
+
|None
|
+
|Cut the currently selected text
 
|-
 
|-
 
|Copy
 
|Copy
|
+
|None
|
+
|Copy the currently selected text
 
|-
 
|-
 
|Paste
 
|Paste
|
+
|None
|
+
|Paste the current contents of the clipboard
 
|-
 
|-
 
|Clear
 
|Clear
|
+
|None
|
+
|Clear all text
 
|-
 
|-
 
|Undo
 
|Undo
|
+
|None
|
+
|Undo last action
 
|-
 
|-
 
|Redo
 
|Redo
|
+
|None
|
+
|Redo last action
 
|-
 
|-
|Selectall
+
|SelectAll
|
+
|None
|
+
|Select all text
 
|-
 
|-
|Find
+
|valign="top"|Find
|
+
|valign="top"|text as Character[, flags as Numeric]
|
+
|valign="top"|Search for the specified text in the contents. Flags: 1 = search backwards instead of forwards, 2 = case sensitive, 4 = match only complete words
 
|-
 
|-
 
|Goto
 
|Goto
|
+
|line as Numeric
|
+
|Go to the specified line number
 
|-
 
|-
|Deleteline
+
|DeleteLine
|
+
|line as Numeric
|
+
|Delete the line at the specified line number
 
|-
 
|-
|Highlightline
+
|HighlightLine
|
+
|line as Numeric
|
+
|Highlight the line at the specified line number
 
|-
 
|-
|Inserttext
+
|InsertText
|
+
|text as Character
|
+
|Insert the specified plain text at the current position
 
|-
 
|-
|Inserthtml
+
|InsertHtml
|
+
|htmltext as Character
|
+
|Insert the specified HTML text at the current position
 
|-
 
|-
|Movestart
+
|MoveStart
|
+
|None
|
+
|Move to the start of the text
 
|-
 
|-
|Moveend
+
|MoveEnd
|
+
|None
|
+
|Move to the end of the text
 
|-
 
|-
|Moveup
+
|MoveUp
|
+
|None
|
+
|Move up a line in the text
 
|-
 
|-
|Movedown
+
|MoveDown
|
+
|None
|
+
|Move down a line in the text
 
|-
 
|-
 
|Line
 
|Line
|
+
|line as Numeric
|
+
|Return the text at the specified line number
 
|-
 
|-
 
|}
 
|}

Revision as of 12:23, 21 December 2012

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Properties

This class supports the Common properties plus the following:

Property Access (R/RW) Value Description
Value RW Character Object's text contents
Text RW Character Object's text in plain text
HTML RW Character Object's text in HTML
Alignment RW Numeric Alignment: 0 = left, 1 = right, 2 = center
Readonly RW Boolean Whether text is readonly
WordWrap RW Boolean Whether text is word-wrapped
Modified RW Boolean Whether text has been modified
LineCount R Numeric Number of lines
LineNumber R Numeric Current line number
ColumnNumber R Numeric Current column number
SelectOnEntry RW Boolean Whether text is selected when object is entered

Methods

This class supports the Common methods plus the following:

Method Args Description
Print None Print text contents
Append text as Character Add the specified text to the end of the existing text
Cut None Cut the currently selected text
Copy None Copy the currently selected text
Paste None Paste the current contents of the clipboard
Clear None Clear all text
Undo None Undo last action
Redo None Redo last action
SelectAll None Select all text
Find text as Character[, flags as Numeric] Search for the specified text in the contents. Flags: 1 = search backwards instead of forwards, 2 = case sensitive, 4 = match only complete words
Goto line as Numeric Go to the specified line number
DeleteLine line as Numeric Delete the line at the specified line number
HighlightLine line as Numeric Highlight the line at the specified line number
InsertText text as Character Insert the specified plain text at the current position
InsertHtml htmltext as Character Insert the specified HTML text at the current position
MoveStart None Move to the start of the text
MoveEnd None Move to the end of the text
MoveUp None Move up a line in the text
MoveDown None Move down a line in the text
Line line as Numeric Return the text at the specified line number

Events

This class supports the Common events plus the following:

Event Args Description