more help tree clean-up

This commit is contained in:
Jim
2015-06-18 11:25:37 -07:00
parent ea5e43c683
commit 1d6cf80655
2 changed files with 105 additions and 44 deletions

View File

@@ -8287,6 +8287,8 @@ Synopsis:
TEXTEDIT ADD TextEdit$, Text$
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
&
@@ -8309,11 +8311,31 @@ Name:
textedit color -- set the colors of a textedit or provide syntax highlighting
Synopsis:
TEXTEDIT COLOR TextEdit$, Option$, r,g,b
TEXTEDIT COLOR TextEdit$, Option$, Command$
TEXTEDIT COLOR TextEdit$, Option$, r,g,b
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
&
textedit get
@@ -8322,12 +8344,44 @@ Name:
textedit get -- retrieve various information from a textedit
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$
Result = TEXTEDIT GET TextEdit$, Option$, LineNumber
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
&
textedit get$
@@ -8340,6 +8394,13 @@ EnteredText$ = TEXTEDIT GET$ TextEdit$
TextLine$ = TEXTEDIT GET$ TextEdit$, LineNumber
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
&

View File

@@ -683,86 +683,86 @@ textedit
textedit add
261589
textedit clear
261801
261914
textedit color
262143
262256
textedit get
262445
263237
textedit get$
262800
264844
textedit set
263074
265283
&
266124
268333
texturl
266132
268341
texturl color
266728
268937
tooltip
267108
269317
tooltip color
268788
270997
&
270071
272280
treebox
270079
272288
treebox add
270442
272651
treebox clear
270967
273176
treebox collapse
271230
273439
treebox count
271528
273737
treebox expand
271836
274045
treebox get$
272119
274328
treebox remove
272446
274655
treebox select
272931
275140
treebox sort
273234
275443
&
273528
275737
localize
273537
275746
# A comment starts with a #
275101
277310
275225
277434
translate$()
276791
279000
&Sound
277544
279753
&
277546
279755
beep
277551
279760
bell
277785
279994
sound play
278148
280357
sound stop
279073
281282
sound wait
279447
281656
&Window
279852
282061
&
279854
282063
alert
279860
282069
filepanel
281638
283847
window open
284928
287137
window close
287643
289852
window count
288135
290344
window get
288762
290971
window set
290483
292692