WIP updating help tree data

This commit is contained in:
Jim
2015-06-16 07:59:33 -07:00
parent 7c924ab138
commit 0169f9a8cf
8 changed files with 840 additions and 322 deletions

View File

@@ -564,9 +564,9 @@ SPLITVIEW x1,y1 TO x2,y2, ID$, IsVerticalSplit, NormalStyle, View$
if IsVerticalSplit = false, a horizontal splitter is set. if IsVerticalSplit = false, a horizontal splitter is set.
If NormalStyle = true, the splitter is 10 pixels thick, If NormalStyle = true, the splitter is 10 pixels thick,
If NormalStyle = false, the splitter is 4 pixels thick. If NormalStyle = false, the splitter is 4 pixels thick.
SPLITVIEW SET SplitView$ "Divider", Position SPLITVIEW SET SplitView$, "Divider", Position
Set the position of the divider, default is the half of the total split view. Set the position of the divider, default is the half of the total split view.
SPLITVIEW SET SplitView$ "MinimumSizes", LeftOrTop, RightOrBottom SPLITVIEW SET SplitView$, "MinimumSizes", LeftOrTop, RightOrBottom
Set the minimum sizes of the left (or top) view and the right (or bottom) view. Set the minimum sizes of the left (or top) view and the right (or bottom) view.
Position = SPLITVIEW GET SplitView$, "Divider" Position = SPLITVIEW GET SplitView$, "Divider"
Get the current position of the divider. Get the current position of the divider.

View File

@@ -26,4 +26,4 @@ AUTHOR: jan__64
yab homepage: http://yab.orgfree.com/ yab homepage: http://yab.orgfree.com/
yab forum: http://yab-talk.forumotion.com/ yab forum: http://yab.orgfree.com/forum/

View File

@@ -1,5 +1,5 @@
f1 = open("data/Help_En.dat", "r") f1 = open("Help_En.dat", "r")
f2 = open("data/Help_En_Index.dat", "w") f2 = open("Help_En_Index.dat", "w")
while(instr(a$, "& infotext") = 0) while(instr(a$, "& infotext") = 0)
line input #f1 a$ line input #f1 a$

View File

@@ -233,6 +233,7 @@ Scrollbar:scrollbar set
Scrollbar:scrollbar get Scrollbar:scrollbar get
Scrollbar:scrollbar Scrollbar:scrollbar
Views:layout Views:layout
Views:canvas
Views:boxview Views:boxview
Graphical User Interface:Printing Graphical User Interface:Printing
Printing:printer setup Printing:printer setup
@@ -268,10 +269,11 @@ Drawing:draw circle
Drawing:draw bitmap Drawing:draw bitmap
Graphical User Interface:Bitmaps Graphical User Interface:Bitmaps
Bitmaps:screenshot Bitmaps:screenshot
Bitmaps:canvas
Bitmaps:bitmap save Bitmaps:bitmap save
Bitmaps:bitmap remove Bitmaps:bitmap remove
Bitmaps:bitmap image
Bitmaps:bitmap get Bitmaps:bitmap get
Bitmaps:bitmap color
Bitmaps:bitmap Bitmaps:bitmap
&Localization:translate$() &Localization:translate$()
&Localization:localize &Localization:localize
@@ -334,6 +336,11 @@ System:compile
System:clipboard copy System:clipboard copy
System:clipboard paste$ System:clipboard paste$
System:bind() System:bind()
System:Attributes
Attributes:attribute clear
Attributes:attribute get
Attributes:attribute get$
Attributes:attribute set
& &
& Information texts (info texts for short) are separated by & Information texts (info texts for short) are separated by
& comment lines. The file must end with a comment line! & comment lines. The file must end with a comment line!
@@ -4227,6 +4234,129 @@ This example is not the recommended way to compute prime numbers. However it giv
Related: local, static, peek Related: local, static, peek
&System &System
&Attributes
&
attribute clear
Name:
attribute clear -- Deletes an attrinbute from a file.
Synopsis:
attribute clear Name$, Filename$
Description:
Delete the attribute Name$ from file Filename$.
Related: attribute set, attribute get, attribute get$
&
attribute get
Name:
attribute get -- Get the number value of the attribute.
Synopsis:
Value = ATTRIBUTE GET Name$, Filename$
Description:
Value = ATTRIBUTE GET Name$, Filename$
Get the number value of the attribute Name$ for file Filename$.
For "Bool" type attributes:
Value = 1|0
Example:
attribute set "bool","Saved", "false", "foobar"
if (attribute get "Saved","foobar") then
print "foobar is saved"
else
print "foobar is not saved"
end if
Explanation:
This example saves a false (0) attribute named Saved on the file "foobar" then checks to see if the Saved attribute is true(1) or false(0) and prints the result. in this case "foobar is not saved."
Related: attribute clear, attribute set, attribute get$
&
attribute get$
Name:
attribute get$ -- Get the string value of an attribute.
Synopsis:
Value$ = ATTRIBUTE GET$ Name$, Filename$
Get the string value of the attribute Name$ for file Filename$.
For "Bool" type attributes:
Value$ ="true|false"
To get a list of attribute names and their types separated by " | ":
Name$ = ""
To get the current program directory:
Name$ = "" and Filename$= ""
Description:
Gets the string value of an attribute, or the list of attributes attatched to a file, or the directory that the program was executed from.
If the attribute is a bool type, the string returned is "true" or "false"
If the attribute name is "" a list of attributes attatched to the file is returned.
if both the attribute name and filename are "", the current program directory is returned.
Example:
dir$ = attribute get$ "",""
dir$=dir$+"/"
attribute set "string","attribute1", "This is the first attribute,", dir$+"foobar"
attribute set "int","attribute2", "127", dir$+"foobar"
attribute set "bool", "attribute3", "false", dir$+"foobar"
a$=attribute get$ "", dir$+"foobar"
print a$
a$=attribute get$ "attribute1", dir$+"foobar"
print "attribute1 \""+a$+"\""
Output:
attribute1 | String | attribute2 | Int | attribute3 | Bool |
attribute1 "This is the first attribute."
Explanation:
This program uses attrribute get$ to find the program directory, then saves three attributes to the file foobar located in the program directory. Next it gets and prints a list of the attribute names and types associated with the file, then it prints the contents of attribute1.
Related: attribute clear, attribute set, attribute get
&
attribute set
Name:
attribute set -- sets ( adds or overwrites ) an attribute of a file.
Synopsis:
ATTRIBUTE SET Type$, Name$, Value$, Filename$
Set the attribute Name$ of type Type$ for the file Filename$ with the string Value$.
These are valid types:
Type$ = "String|Int|Long|Double|Float|Mime|Bool"
For Bool type attributes:
Value$ = "true|false"
Description:
Attribute set sets, adds or overwrites, file attributes. The attributes can be strings, integer, long.double, or float numbers, or boolian true/false.
Related: attribute clear, attribute get, attribute get$
& &
bind() bind()
@@ -4578,7 +4708,7 @@ Related: sleep, wait
peek peek
Name: Name:
peek -- retrieve various internal informations peek -- retrieve internal information
Synopsis: Synopsis:
print peek("foo") print peek("foo")
@@ -4600,6 +4730,21 @@ Return the height in characters of the window, wherein yab runs. If you have not
peek("screenwidth") peek("screenwidth")
Return the width in characters of the window, wherein yab runs. If you have not called clear screen yet, this peekwill return 0, regardless of the size of your terminal. Return the width in characters of the window, wherein yab runs. If you have not called clear screen yet, this peekwill return 0, regardless of the size of your terminal.
peek("desktopheight")
Return the height in pixels of the curent Desktop.
peek("desktopwidth")
Return the width in pixels of the curent Desktop.
peek("menuheight")
Return the height in pixels based on the font for a menu.
peek("scrollbarwidth")
Return the width in pixels for a virtical scrollbar.
peek("tabheight")
Return the height in pixels based on the font for a tabview tab.
peek("argument") peek("argument")
Return the number of arguments, that have been passed to yab at invocation time. E.g. if yab has been called like this: Return the number of arguments, that have been passed to yab at invocation time. E.g. if yab has been called like this:
yab foo.yab bar baz yab foo.yab bar baz
@@ -4664,7 +4809,7 @@ Related: peek$, poke, open
peek$ peek$
Name: Name:
peek$ -- retrieve various internal string-informations peek$ -- retrieve internal string-information
Synopsis: Synopsis:
print peek$("foo") print peek$("foo")
@@ -4992,7 +5137,215 @@ This example demonstrates the difference between colon and newline as described
Related: if Related: if
&GUI &GUI
&Bitmaps
&
bitmap
Name:
bitmap -- creates a bitmap in memory
Synopsis:
BITMAP Width, Height, ID$
Description:
Bitmap creates a new bitmap in memory. A bitmap can be drawn on like a view or canvas. A bitmap is always initialized with a white transparent background
Related: bitmap color, bitmap get, bitmap image, bitmap remove, bitmap save, draw bitmap
&
bitmap color
Name:
bitmap color -- Gets the color of a pixel on a bitmap
Synopsis:
color = BITMAP COLOR x, y, ID$, ColorPart$
ColorPart$ = "red|green|blue"
Description:
Returns the red, green, or blue color value of the pixel at position (x,y) of the bitmap ID$
Related: bitmap, bitmap get, bitmap image, bitmap remove, bitmap save, draw bitmap
&
bitmap get
Name:
bitmap get -- get heitht/width information or insert an icon or portion of a bitmap or canvas view to bitmap
Synopsis:
BITMAP GET x1, y1 TO x2, y2, Target_bitmap$, Source_bitmap$
BITMAP GET IconSize, Bitmap$, File$
BITMAP GET ID$, Option$, Path$
BITMAP GET ID$, Option$
Description:
Get a portion of an image:
BITMAP GET x1, y1 TO x2, y2, Target_bitmap$, Source_bitmap$
x1,y1 and x2, y2 describe the bounding rectangle for the data in Source_bitmap$ to be copied to Target_bitmap$. Source_bitmap$ must be a bitmap or canvas. the Target_bitmap$ is created.
get an icon and copy it to a bitmap:
BITMAP GET IconSize, Bitmap$, File$
Copies the icon, shown in Tracker, of File$ in the specified IconSize onto Bitmap$.
The icon will be resized to IconSize, and properly scaled if it is an hvicon.
Bitmap$ is created.
Note: icons are square, IconSize 40 gives an image 40 * 40.
BITMAP GET ID$, Option$, Path$
Copies an icon to bitmap ID$.
Option$ = "Path|Mime|Mime16|Mime32"
If Option$ = "Path", Path$ must be the path to a file. The icon returned is 32 * 32
If Option$ = "Mime" or "Mime16", Path$ must be the mimetype of the file which icon is to be swown. The resulting bitmap is 16 to 16.
If Option$ = "Mime32", Path$ must be the mimetype of the file which icon is to be swown.The resulting bitmap is 32 to 32.
the bitmap ID$, is created.
x=BITMAP GET ID$, Option$
Option$ = "Height|Width"
Delivers height or width of bitmap ID$
Example:
#!yab
window open 100,100 to 600,600, "MainWindow", "IconWorld"
canvas 0,0 to 500,500, "Main","MainWindow"
systempath$ = "/boot/system/apps/Mail"
draw text 70,30, "bitmap get \"BMP_icon\", \"path\", \"" + systempath$ +"\"", "Main"
bitmap get "BMP_icon", "path", systempath$
draw bitmap 10, 10, "BMP_icon", "alpha", "Main"
bitmap remove "BMP_icon"
draw text 70,70, "bitmap get \"BMP_icon\", \"mime16\", \"application/x-vnd.Be-MAIL\"", "Main"
bitmap get "BMP_icon", "mime16", "application/x-vnd.Be-MAIL"
draw bitmap 10, 60, "BMP_icon", "alpha", "Main"
bitmap remove "BMP_icon"
draw text 70,110, "bitmap get \"BMP_icon\", \"mime32\", \"application/x-vnd.Be-MAIL\"", "Main"
bitmap get "BMP_icon", "mime32", "application/x-vnd.Be-MAIL"
draw bitmap 10, 90, "BMP_icon", "alpha", "Main"
bitmap remove "BMP_icon"
draw text 70,150, "bitmap get 62, \"BMP_icon\", \"" + systempath$ + "\"", "Main"
bitmap get 62, "BMP_icon", systempath$
draw bitmap 10, 130, "BMP_icon", "alpha", "Main"
x=bitmap get "BMP_icon","width"
draw text 70,190, "x=bitmap get 62, \"BMP_icon\", \"width\" :"+str$(x), "Main"
bitmap remove "BMP_icon"
BITMAP GET 0, 130 TO 60, 150,"BMP_icon","Main"
draw bitmap 0, 200, "BMP_icon", "alpha", "Main"
draw text 70,220, "bitmap get 0,130 TO 60, 150, \"BMP_icon\", \"Main\"","Main"
x=bitmap get "BMP_icon","width"
draw text 70,240, "x=bitmap get, \"BMP_icon\", \"width\" :"+str$(x), "Main"
while(not instr(message$, "Quit"))
wend
window close "Main"
Explanation:
This program uses all forms of bitmap get and displays the output in a Window.
Related: bitmap, bitmap color, bitmap image, bitmap remove, bitmap save, draw bitmap
&
bitmap image
Name:
bitmap image -- copies an image file to a bitmap.
Synopsis:
ErrCode = BITMAP IMAGE ImageFile$, Bitmap$
Explanation:
Load image file ImageFIle$ into a new Bitmap called Bitmap$
Related: bitmap, bitmap color, bitmap get, bitmap remove, bitmap save, draw bitmap
&
bitmap remove
Name:
bitmap remove -- removes a bitmap from memory
Synopsis:
BITMAP REMOVE Bitmap$
Explanation:
Removes Bitmap$ from memory
Related: bitmap, bitmap color, bitmap get, bitmap image, bitmap save, draw bitmap
&
bitmap save
Name:
bitmap save -- saves a bitmap to an image file.
Synopsis:
ErrCode = BITMAP IMAGE ImageFile$, Bitmap$
Description:
Saves a bitmap as FileName$ (overwrites existing ones!) in Format$
Format$ = "png|tiff|ppm|bmp|jpeg|tga"
ErrCode = 0|1 , everything worked fine | file could not be saved
Related: bitmap, bitmap color, bitmap get, bitmap image, bitmap remove, draw bitmap
&
screenshot
Name:
screenshot -- copies the specified region of the desktop onto a bitmap
Synopsis:
SCREENSHOT x1, y1 to x2, y2, Bitmap$
Description:
Takes a screenshot and copies the specified region of the desktop onto Bitmap$, which will be created!
&
&Drawing &Drawing
&
draw bitmap
Name:
draw bitmap -- Draw a bitmap on a view, another bitmap or a canvas.
Synopsis:
DRAW BITMAP x,y, Bitmap$, Mode$, View$
DRAW BITMAP x1,y1 TO x2,y2, Bitmap$, Mode$, View$
Description:
DRAW BITMAP x,y, Bitmap$, Mode$, View$
Draw a bitmap on a view, another bitmap or a canvas.
Possible Mode$:
"Copy" -- copy the bitmap to the target ignoring transparency
"Alpha" -- copy the bitmap to the target supporting transparency
DRAW BITMAP x1,y1 TO x2,y2, Bitmap$, Mode$, View$
Draws and scales the bitmap Bitmap$.
If x2 is set to -1, the width is scaled according to the height;
if y2 is set to -1, the height is scaled according to the width;
if x2 and y2 are set to -1, the image is not scaled at all (this is like DRAW BITMAP x,y, Bitmap$, Mode$, View$).
Possible Mode$:
"Copy" -- copy the bitmap to the target ignoring transparency
"Alpha" -- copy the bitmap to the target supporting transparency
& &
draw circle draw circle
@@ -5598,7 +5951,7 @@ where Control$ is the ID of the widget or view where the event occured.
Related: ismousein(), mouse message$(), mouse set Related: ismousein(), mouse message$(), mouse set
& &
MOUSE SET Option$ mouse set
Name: Name:
mouse set -- show or hide the mouse cursor mouse set -- show or hide the mouse cursor
@@ -6149,6 +6502,114 @@ Explanation:
The example opens a window and sets up a boxview with the label "Hello Box" and a fancy border style (2). The example opens a window and sets up a boxview with the label "Hello Box" and a fancy border style (2).
Related: view, view remove Related: view, view remove
&
canvas
Name:
canvas -- creates a special flicker-free drawing view.
Synopsis:
CANVAS x1, y1 TO x2, y2, ID$, View$
Description:
CANVAS x1, y1 TO x2, y2, ID$, View$
A canvas is a special view for flicker-free drawing. It always shows a bitmap
and thus cannot be resized. However, it does not have a drawing queue, so you
do not need DRAW FLUSH
A canvas is always initialized with a white background.
related: draw bitmap, bitmap get
&
layout
Name:
latout -- Set the layout for all views on a window.
Synopsis:
LAYOUT Layout$, WindowOfView$
Description:
Set the layout for all views on the window of View$. The layout will affect all following new widgets, but not the already created. Draw commands are not affected by the layout.
Layout$ (not case sensitive):
"Standard" = default layout, all widgets follow bottom and right side of the window
except for listboxes and textedit which follow all sides.
"All" = follow all sides (widgets resize)
"None" = follow the top and the left side (equals "top, left")
-OR- Layout$ is a combination of a horizontal and a vertical command (e.g. "Right, Top" etc.).
Horizontal:
"Left" = follow left side (default, when no other horizontal layout is given)
"Right" = follow the right side
"Left, Right" = follow the left and the right side (resize)
"H-Center" = follow the horizontal center
Vertical:
"Top" = follow the top side (default, when no other vertical layout is given)
"Bottom" = follow the bottom side
"Top, Bottom" = follow the top and bottom side (resize)
"V-Center" = follow the vertical center
&Scrollbar
&
scrollbar
Name:
scrollbar -- make a view scrollable
Synopsis:
SCROLLBAR ID$, ScrollbarType, View$
Description:
SCROLLBAR ID$, ScrollbarType, View$
Make View$ scrollable.
Related: scrollbar get, scrollbar set
&
scrollbar get
Name:
scrollbar get -- Get the current position of the scrollbar.
Description:
Position = SCROLLBAR GET Scrollbar$, "Horizontal"
Position = SCROLLBAR GET Scrollbar$, "Vertical"
Get the current position of the scrollbars.
Related: scrollbar, scrollbar set
&
scrollbar set
Name: scrollbar set -- set various settings for the scrollbars.
Synopsis:
SCROLLBAR SET Scrollbar$, Borderoption$
SCROLLBAR SET Scrollbar$, "Vertical Position", Position
SCROLLBAR SET Scrollbar$, "Horizontal Position", Position
SCROLLBAR SET Scrollbar$, "Vertical Range", Min, Max
SCROLLBAR SET Scrollbar$, "Horizontal Range", Min, Max
SCROLLBAR SET Scrollbar$, "Vertical Steps", SmallSteps, BigSteps
SCROLLBAR SET Scrollbar$, "Horizontal Steps", SmallSteps, BigSteps
Description:
SCROLLBAR SET Scrollbar$, Borderoption$
Borderoption$ = "no-border" or "plain-border" or "fancy-border" (default)
SCROLLBAR SET Scrollbar$, "Vertical Position", Position
SCROLLBAR SET Scrollbar$, "Horizontal Position", Position
Set the scrollbar to the position Position. Default is (0,0).
SCROLLBAR SET Scrollbar$, "Vertical Range", Min, Max
SCROLLBAR SET Scrollbar$, "Horizontal Range", Min, Max
Set the scrollbars to a maximum range, default is (1000,1000).
Note: the Max value will be added to the view's actual width/height.
SCROLLBAR SET Scrollbar$, "Vertical Steps", SmallSteps, BigSteps
SCROLLBAR SET Scrollbar$, "Horizontal Steps", SmallSteps, BigSteps
Set the scrollbar steps.
SmallSteps are the scrolling steps when the user clicks on the arrow buttons (default is 1.0).
BigSteps are the scrolling steps when the user clicks on the empty part of the scrollbar (default is 10.0).
Related: scrollbar, scrollbar get
& &
stackview stackview

View File

@@ -1,620 +1,662 @@
&Arithmetic &Arithmetic
7340 7500
& &
7342 7502
abs() abs()
7348 7508
acos() acos()
7715 7875
and() and()
8214 8374
asin() asin()
9004 9164
atan() atan()
9513 9673
bin$() bin$()
10412 10572
cos() cos()
11018 11178
dec() dec()
11283 11443
eor() eor()
11802 11962
euler euler
12579 12739
exp() exp()
12985 13145
frac() frac()
13607 13767
int() int()
14288 14448
log() log()
14688 14848
max() max()
15347 15507
min() min()
16139 16299
mod() mod()
16554 16714
or() or()
17267 17427
pi pi
18060 18220
ran() ran()
18516 18676
sig() sig()
19359 19519
sin() sin()
20003 20163
sqr() sqr()
20528 20688
sqrt() sqrt()
20899 21059
tan() tan()
21251 21411
xor() xor()
21614 21774
** or ^ ** or ^
22647 22807
& &
23464 23624
and and
23468 23628
break break
23918 24078
case case
24613 24773
continue continue
25110 25270
default default
25779 25939
do do
26899 27059
else else
27443 27603
elsif elsif
27982 28142
end end
29452 29612
endif endif
30144 30304
false false
30790 30950
fi fi
31357 31517
for for
31671 31831
gosub gosub
32633 32793
goto goto
33503 33663
if if
34353 34513
label label
36139 36299
loop loop
37128 37288
next next
37615 37775
not not
38174 38334
on gosub on gosub
38826 38986
on goto on goto
40161 40321
on interrupt on interrupt
41585 41745
logical or logical or
42871 43031
pause pause
43274 43434
repeat repeat
44502 44662
return return
45189 45349
sleep sleep
46888 47048
step step
47263 47423
switch switch
47803 47963
then then
49119 49279
true true
49927 50087
until until
50363 50523
wait wait
50970 51130
wend wend
51344 51504
while while
51842 52002
: :
52498 52658
& &
53135 53295
arraydim() arraydim()
53146 53306
arraysize() arraysize()
54036 54196
data data
56609 56769
dim dim
57561 57721
read read
59078 59238
redim redim
59721 59881
restore restore
60160 60320
& &
61229 61389
asc() asc()
61235 61395
chr$() chr$()
62058 62218
glob() glob()
62920 63080
abc matches a* abc matches a*
63881 64041
64069 64229
hex$() hex$()
64078 64238
instr() instr()
64568 64728
left$() left$()
65582 65742
len() len()
66883 67043
lower$() lower$()
67257 67417
ltrim$() ltrim$()
67665 67825
rtrim$() rtrim$()
68317 68477
mid$() mid$()
68965 69125
right$() right$()
70233 70393
split() split()
71552 71712
Please enter a line: a Please enter a line: a
74189 74349
74683 74843
str$() str$()
74709 74869
string | Result for converting 1000*pi | Description string | Result for converting 1000*pi | Description
76115 76275
79512 79672
token() token()
79814 79974
Please enter a line: a Please enter a line: a
82337 82497
82735 82895
trim$() trim$()
82762 82922
upper$() upper$()
83375 83535
val() val()
84023 84183
& &
84737 84897
at() at()
84742 84902
clear screen clear screen
86033 86193
close close
86749 86909
color color
87220 87380
colour colour
88334 88494
eof eof
88481 88641
getscreen$() getscreen$()
89072 89232
inkey$ inkey$
90220 90380
input input
91439 91599
Please enter the name of a file to read: test.yab Please enter the name of a file to read: test.yab
92833 92993
92970 93130
line input line input
93005 93165
open open
93847 94007
print print
96974 97134
putscreen putscreen
100211 100371
reverse reverse
101106 101266
screen screen
101885 102045
seek() seek()
102115 102275
tell tell
103677 103837
using using
104338 104498
# #
105379 105539
at() at()
106752 106912
; ;
108031 108191
& &
108677 108837
end sub end sub
108685 108845
export export
109117 109277
import foo import foo
110164 110324
110462 110622
Calling subroutine foo.bar (okay) ... Calling subroutine foo.bar (okay) ...
110563 110723
110877 111037
import import
111412 111572
rem Make the subroutine x easily available outside this library rem Make the subroutine x easily available outside this library
112343 112503
112519 112679
0 0
112568 112728
112726 112886
local local
113011 113171
numparams numparams
114471 114631
return return
115922 116082
static static
117624 117784
1 1 1 1
118426 118586
118449 118609
sub sub
118644 118804
&Attributes
121093
& &
120923 121095
attribute clear
121111
attribute get
121350
attribute get$
122081
attribute set
123739
bind() bind()
120930 124325
clipboard copy clipboard copy
121702 125097
clipboard paste$ clipboard paste$
122404 125799
compile compile
123026 126421
date$ date$
123582 126977
doc doc
125307 128702
docu$ docu$
126462 129857
error error
127284 130679
---Error in t.yab, line 2: Oh no ... ---Error in t.yab, line 2: Oh no ...
127927 131322
127983 131378
execute$() execute$()
127997 131392
print foo$(a$,b$) print foo$(a$,b$)
129032 132427
129045 132440
execute() execute()
129085 132480
exit exit
129490 132885
iscomputeron iscomputeron
129884 133279
pause pause
130272 133667
peek peek
131499 134894
peek$ peek$
136562 140336
3a 3a
139523 143288
139544 143309
poke poke
139579 143344
rem rem
140817 144582
sleep sleep
141931 145696
system$() system$()
142290 146055
system() system()
142879 146644
thread get thread get
143502 147267
thread remove thread remove
144851 148616
time$ time$
145774 149539
to to
146943 150708
// //
147497 151262
: :
148001 151766
&Drawing &Bitmaps
148634 152399
& &
148636 152401
bitmap
152408
bitmap color
152767
bitmap get
153119
bitmap image
156244
bitmap remove
156530
bitmap save
156757
screenshot
157154
157399
157409
draw bitmap
157423
draw circle draw circle
148648 158360
draw curve draw curve
149307 159019
draw dot draw dot
150292 160004
draw ellipse draw ellipse
150873 160585
draw flush draw flush
151612 161324
draw get draw get
152742 162454
draw get$ draw get$
154688 164400
draw image draw image
156101 165813
draw line draw line
158007 167719
draw rect draw rect
158579 168291
draw set draw set
159235 168947
draw text draw text
162604 172316
& &
163774 173486
ismousein() ismousein()
163786 173498
keyboard message$() keyboard message$()
164508 174220
message$ message$
166397 176109
message send message send
168730 178442
_Scripting:...| _Scripting:...|
169635 179347
169648 179360
mouse message$() mouse message$()
169875 179587
mousemove$ mousemove$
171899 181611
MOUSE SET Option$ mouse set
172563 182267
shortcut shortcut
173069 182773
"S" for the shift key "S" for the shift key
173869 183573
174021 183725
"O" for ALT-O "O" for ALT-O
174171 183875
174236 183940
ALT-X ALT-X
174660 184364
174703 184407
&Printing &Printing
175654 185358
& &
175656 185360
printer printer
175664 185368
printer setup printer setup
178037 187741
& &
179061 188765
menu menu
179066 188770
Menu$ = "--" Menu$ = "--"
179534 189238
then the menu item will be a separator line. then the menu item will be a separator line.
179591 189295
"S" for the shift key "S" for the shift key
180064 189768
These modifiers can be combined, but the following combinations do not work: "SO", "SC" and "SCO" These modifiers can be combined, but the following combinations do not work: "SO", "SC" and "SCO"
180313 190017
"O" for ALT-O "O" for ALT-O
180364 190068
180429 190133
For the menu Head$ "File": For the menu Head$ "File":
181227 190931
181477 191181
menu set menu set
182569 192273
Option$ = "Disable" -- grey out the item so it cannot be selected anymore Option$ = "Disable" -- grey out the item so it cannot be selected anymore
183372 193076
183521 193225
popupmenu popupmenu
184632 194336
submenu submenu
186280 195984
Menu$ = "--" Menu$ = "--"
186864 196568
then the submenu item will be a separator line. then the submenu item will be a separator line.
186924 196628
"S" for the shift key "S" for the shift key
187400 197104
These modifiers can be combined, but the following combinations do not work: "SO", "SC" and "SCO" These modifiers can be combined, but the following combinations do not work: "SO", "SC" and "SCO"
187649 197353
"O" for ALT-O "O" for ALT-O
187700 197404
187765 197469
submenu set submenu set
190651 200355
Option$ = "Disable" -- grey out the item so it cannot be selected anymore Option$ = "Disable" -- grey out the item so it cannot be selected anymore
191527 201231
191676 201380
& &
192423 202127
boxview boxview
192431 202135
canvas
203555
layout
203993
&
205118
scrollbar
205128
scrollbar get
205348
scrollbar set
205627
stackview stackview
193854 207066
stackview get stackview get
195968 209180
stackview set stackview set
196259 209471
& &
196716 209928
button button
196723 209935
button image button image
198038 211250
calendar calendar
199779 212991
calendar get$ calendar get$
201446 214658
calendar set calendar set
201939 215151
checkbox checkbox
202364 215576
checkbox image checkbox image
203621 216833
checkbox set checkbox set
205848 219060
colorcontrol colorcontrol
206147 219359
colorcontrol get colorcontrol get
208169 221381
colorcontrol set colorcontrol set
208777 221989
columnbox columnbox
209113 222325
columnbox add columnbox add
214323 227535
columnbox clear columnbox clear
215504 228716
columnbox color columnbox color
215872 229084
columnbox column columnbox column
216917 230129
columnbox count columnbox count
218076 231288
columnbox get columnbox get
218514 231726
columnbox get$ columnbox get$
219049 232261
columnbox remove columnbox remove
219592 232804
columnbox select columnbox select
219949 233161
listbox listbox
220404 233616
listbox add listbox add
223369 236581
listbox clear listbox clear
223847 237059
listbox count listbox count
224142 237354
listbox get listbox get
224538 237750
listbox get$ listbox get$
225025 238237
listbox remove listbox remove
225443 238655
listbox select listbox select
225782 238994
listbox sort listbox sort
226427 239639
radiobutton radiobutton
227139 240351
radiobutton set radiobutton set
228873 242085
statusbar statusbar
229279 242491
statusbar set statusbar set
230748 243960
text text
231246 244458
text set text set
232434 245646
textedit textedit
233552 246764
textedit add textedit add
233845 247057
textedit clear textedit clear
234057 247269
textedit color textedit color
234399 247611
textedit get textedit get
234701 247913
textedit get$ textedit get$
235056 248268
textedit set textedit set
235330 248542
tooltip tooltip
238275 251487
tooltip color tooltip color
239955 253167
&Localization &Localization
241243 254455
& &
241245 254457
localize localize
241254 254466
# A comment starts with a # # A comment starts with a #
242818 256030
242942 256154
translate$() translate$()
244508 257720
&Sound &Sound
245261 258473
& &
245263 258475
beep beep
245268 258480
bell bell
245502 258714
sound play sound play
245865 259077
sound stop sound stop
246790 260002
sound wait sound wait
247164 260376
&Window &Window
247569 260781
& &
247571 260783
alert alert
247577 260789
filepanel filepanel
249355 262567
window open window open
252645 265857
window close window close
255360 268572
window count window count
255852 269064
window get window get
256479 269691
window set window set
258200 271412

0
yab-IDE/src/foobar Normal file
View File

14
yab-IDE/src/untitled0.yab Normal file
View File

@@ -0,0 +1,14 @@
open #1, "foobar","w"
close #1
dir$ = attribute get$ "",""
dir$=dir$+"/"
attribute set "string","attribute1", "This is the first attribute.", dir$+"foobar"
attribute set "int","attribute2", "127", dir$+"foobar"
attribute set "bool", "attribute3", "false", dir$+"foobar"
a$=attribute get$ "", dir$+"foobar"
print a$
a$=attribute get$ "attribute1", dir$+"foobar"
print "attribute1 \""+a$+"\""

View File

@@ -2002,6 +2002,7 @@ sub AboutWindow()
t=instr(a$,chr$(44)) t=instr(a$,chr$(44))
a$=left$(a$,t-1) a$=left$(a$,t-1)
a$="Running "+a$ a$="Running "+a$
//a$=str$(peek(version))
width=draw get "text-width", a$, "AboutWindow" width=draw get "text-width", a$, "AboutWindow"
draw text 200-width/2, 200,a$,"AboutWindow" draw text 200-width/2, 200,a$,"AboutWindow"