more help tree clean-up
This commit is contained in:
@@ -8287,6 +8287,8 @@ Synopsis:
|
|||||||
TEXTEDIT ADD TextEdit$, Text$
|
TEXTEDIT ADD TextEdit$, Text$
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
|
Adds ( appends ) Text$ to textedit TextEdit$.
|
||||||
|
This command works when the textedit is not editable by the user.
|
||||||
|
|
||||||
Related: textedit, textedit clear, textedit color, textedit get, textedit get$, textedit set
|
Related: textedit, textedit clear, textedit color, textedit get, textedit get$, textedit set
|
||||||
&
|
&
|
||||||
@@ -8309,11 +8311,31 @@ Name:
|
|||||||
textedit color -- set the colors of a textedit or provide syntax highlighting
|
textedit color -- set the colors of a textedit or provide syntax highlighting
|
||||||
|
|
||||||
Synopsis:
|
Synopsis:
|
||||||
TEXTEDIT COLOR TextEdit$, Option$, r,g,b
|
|
||||||
TEXTEDIT COLOR TextEdit$, Option$, Command$
|
TEXTEDIT COLOR TextEdit$, Option$, Command$
|
||||||
|
TEXTEDIT COLOR TextEdit$, Option$, r,g,b
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
|
|
||||||
|
TEXTEDIT COLOR TextEdit$, Option$, Command$
|
||||||
|
Option$ = "color1, color2, color3, color4, char-color", Command$
|
||||||
|
|
||||||
|
Add the command Command$ to the list of words that are checked for syntax highlighting
|
||||||
|
The char-color behaves differently and highlights only the first character of Command$
|
||||||
|
(this happens after the highlighting of the other colors).
|
||||||
|
|
||||||
|
|
||||||
|
TEXTEDIT COLOR TextEdit$, Option$, r,g,b
|
||||||
|
Option$ = "bgcolor, textcolor, color1, color2, color3, color4, char-color", r,g,b
|
||||||
|
|
||||||
|
Default colors are:
|
||||||
|
bgcolor = 255,255,255 (white)
|
||||||
|
textcolor = 0,0,0 (black)
|
||||||
|
color1 = 0,0,255 (blue)
|
||||||
|
color2 = 255,0,0 (red)
|
||||||
|
color3 = 0,250,0 (green)
|
||||||
|
color4 = 185,185,185 (gray)
|
||||||
|
char-color = 200,0,255 (magenta)
|
||||||
|
|
||||||
Related: textedit, textedit add, textedit clear, textedit get, textedit get$, textedit set
|
Related: textedit, textedit add, textedit clear, textedit get, textedit get$, textedit set
|
||||||
&
|
&
|
||||||
textedit get
|
textedit get
|
||||||
@@ -8322,12 +8344,44 @@ Name:
|
|||||||
textedit get -- retrieve various information from a textedit
|
textedit get -- retrieve various information from a textedit
|
||||||
|
|
||||||
Synopsis:
|
Synopsis:
|
||||||
LineNumber = TEXTEDIT GET TextEdit$, Option$
|
Width = TEXTEDIT GET TextEdit$, "Line-Width", LineNumber
|
||||||
|
Height = TEXTEDIT GET TextEdit$, "Line-Height", LineNumber
|
||||||
|
return = TEXTEDIT GET TextEdit$, Option$
|
||||||
LineNumber = TEXTEDIT GET TextEdit$, Option$, Search$
|
LineNumber = TEXTEDIT GET TextEdit$, Option$, Search$
|
||||||
Result = TEXTEDIT GET TextEdit$, Option$, LineNumber
|
Result = TEXTEDIT GET TextEdit$, Option$, LineNumber
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
|
|
||||||
|
return = TEXTEDIT GET TextEdit$, Option$
|
||||||
|
Option$ = "hasChanged" -- returns IsChanged 0 not changed, 1 changed
|
||||||
|
|
||||||
|
This is a hook function that is set once the user changes the text, reset it to false by using:
|
||||||
|
"textedit set TextEdit$, "changed", false
|
||||||
|
|
||||||
|
Then use this hook to see if the user has changed the text.
|
||||||
|
|
||||||
|
|
||||||
|
Option$ = "countlines" -- returns the number of lines
|
||||||
|
Option$ = "currentline" -- returns the curent lLineNumber
|
||||||
|
Option$ = "vertical-scrollbar" -- returns the virtical ofset of the scrollbar
|
||||||
|
Option$ = "horizontal-scrollbar" -- returns the horizontal ofset of the scrollbar
|
||||||
|
Option$ = "cursor-position" -- returns the cursor position
|
||||||
|
Option$ = "textlength" -- returns the length of the text.
|
||||||
|
|
||||||
|
|
||||||
|
Width = TEXTEDIT GET TextEdit$, "Line-Width", LineNumber
|
||||||
|
Get the width in pixels of the line.
|
||||||
|
|
||||||
|
Height = TEXTEDIT GET TextEdit$, "Line-Height", LineNumber
|
||||||
|
Get the height in pixels of the line.
|
||||||
|
|
||||||
|
LineNumber = TEXTEDIT GET TextEdit$, Option$, Search$
|
||||||
|
Option$ = "Find", Search$
|
||||||
|
Option$ = "Case-Sensitive-Find", Search$
|
||||||
|
|
||||||
|
Specifys the type of search and returns the linenumber that the search string is found in. returns 0 if not found.
|
||||||
|
|
||||||
|
|
||||||
Related: textedit, textedit add, textedit clear, textedit color, textedit get$, textedit set
|
Related: textedit, textedit add, textedit clear, textedit color, textedit get$, textedit set
|
||||||
&
|
&
|
||||||
textedit get$
|
textedit get$
|
||||||
@@ -8340,6 +8394,13 @@ EnteredText$ = TEXTEDIT GET$ TextEdit$
|
|||||||
TextLine$ = TEXTEDIT GET$ TextEdit$, LineNumber
|
TextLine$ = TEXTEDIT GET$ TextEdit$, LineNumber
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
|
EnteredText$ = TEXTEDIT GET$ TextEdit$
|
||||||
|
Get the entire contents of a textedit.
|
||||||
|
|
||||||
|
TextLine$ = TEXTEDIT GET$ TextEdit$, LineNumber
|
||||||
|
Get the contents of a line of text.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Related: textedit, textedit add, textedit clear, textedit color, textedit get, textedit set
|
Related: textedit, textedit add, textedit clear, textedit color, textedit get, textedit set
|
||||||
&
|
&
|
||||||
|
|||||||
@@ -683,86 +683,86 @@ textedit
|
|||||||
textedit add
|
textedit add
|
||||||
261589
|
261589
|
||||||
textedit clear
|
textedit clear
|
||||||
261801
|
261914
|
||||||
textedit color
|
textedit color
|
||||||
262143
|
262256
|
||||||
textedit get
|
textedit get
|
||||||
262445
|
263237
|
||||||
textedit get$
|
textedit get$
|
||||||
262800
|
264844
|
||||||
textedit set
|
textedit set
|
||||||
263074
|
265283
|
||||||
&
|
&
|
||||||
266124
|
268333
|
||||||
texturl
|
texturl
|
||||||
266132
|
268341
|
||||||
texturl color
|
texturl color
|
||||||
266728
|
268937
|
||||||
tooltip
|
tooltip
|
||||||
267108
|
269317
|
||||||
tooltip color
|
tooltip color
|
||||||
268788
|
270997
|
||||||
&
|
&
|
||||||
270071
|
272280
|
||||||
treebox
|
treebox
|
||||||
270079
|
272288
|
||||||
treebox add
|
treebox add
|
||||||
270442
|
272651
|
||||||
treebox clear
|
treebox clear
|
||||||
270967
|
273176
|
||||||
treebox collapse
|
treebox collapse
|
||||||
271230
|
273439
|
||||||
treebox count
|
treebox count
|
||||||
271528
|
273737
|
||||||
treebox expand
|
treebox expand
|
||||||
271836
|
274045
|
||||||
treebox get$
|
treebox get$
|
||||||
272119
|
274328
|
||||||
treebox remove
|
treebox remove
|
||||||
272446
|
274655
|
||||||
treebox select
|
treebox select
|
||||||
272931
|
275140
|
||||||
treebox sort
|
treebox sort
|
||||||
273234
|
275443
|
||||||
&
|
&
|
||||||
273528
|
275737
|
||||||
localize
|
localize
|
||||||
273537
|
275746
|
||||||
# A comment starts with a #
|
# A comment starts with a #
|
||||||
275101
|
277310
|
||||||
|
|
||||||
275225
|
277434
|
||||||
translate$()
|
translate$()
|
||||||
276791
|
279000
|
||||||
&Sound
|
&Sound
|
||||||
277544
|
279753
|
||||||
&
|
&
|
||||||
277546
|
279755
|
||||||
beep
|
beep
|
||||||
277551
|
279760
|
||||||
bell
|
bell
|
||||||
277785
|
279994
|
||||||
sound play
|
sound play
|
||||||
278148
|
280357
|
||||||
sound stop
|
sound stop
|
||||||
279073
|
281282
|
||||||
sound wait
|
sound wait
|
||||||
279447
|
281656
|
||||||
&Window
|
&Window
|
||||||
279852
|
282061
|
||||||
&
|
&
|
||||||
279854
|
282063
|
||||||
alert
|
alert
|
||||||
279860
|
282069
|
||||||
filepanel
|
filepanel
|
||||||
281638
|
283847
|
||||||
window open
|
window open
|
||||||
284928
|
287137
|
||||||
window close
|
window close
|
||||||
287643
|
289852
|
||||||
window count
|
window count
|
||||||
288135
|
290344
|
||||||
window get
|
window get
|
||||||
288762
|
290971
|
||||||
window set
|
window set
|
||||||
290483
|
292692
|
||||||
|
|||||||
Reference in New Issue
Block a user