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