[REBOL] System object Re:
From: allen::rebolforces::com at: 7-Sep-2000 10:34
----- Original Message -----
From: <[ptretter--charter--net]>
To: <[list--rebol--com]>
Sent: Thursday, September 07, 2000 7:57 AM
Subject: [REBOL] System object
> Where can we learn more about system and the options available?
>
> Paul
>
Hi Paul,
The script
http://www.rebol.org/script/browse-system.rwill help you see
what is in there. Many of the settings in the system object have an
equivalent mezzanine function for retrieving or setting their data.
e.g try
source what-dir
source set-net
source set-user-name
Also this modified version of 'what might be handy too.
what-object: func [
"Print a list of functions (with params) from within an object"
object [object!]
/local vals args here total
][
total: copy []
vals: second object
foreach word first object [
if any-function? first vals [
args: first first vals
if here: find args /local [args: copy/part args here]
append total reduce [word mold args]
]
vals: next vals
]
foreach [word args] sort/skip total 2 [print [word args]]
exit
]
;----------------------
; e.g usage
>> what-object system/view/vid/vid-feel
add-char [face char]
back-field [face]
beg-of-line [str]
copy-selected-text [face]
copy-text [face]
delete-selected-text []
drag-off [bar drag val]
edit-text [face event action]
end-of-line [str]
focus [face]
next-field [face]
unlight-text []
Cheers,
Allen K