Last modified on 27 October 2012, at 22:13

REBOL Programming/desktop

USAGE:Edit

DESKTOP url /only 

DESCRIPTION:Edit

Display the REBOL viewtop

DESKTOP is a function value.

ARGUMENTSEdit

  • url -- (Type: url file any-type)

REFINEMENTSEdit

  • /only -- Only if prefs/desktop option says so

SOURCE CODEEdit

desktop: func [
    "Display the REBOL viewtop" 
    url [url! file! any-type!] 
    /only "Only if prefs/desktop option says so"
][
    if all [only not user-prefs/desktop] [exit] 
    system/options/quiet: true 
    if block? ctx-viewtop [
        ctx-viewtop: context ctx-viewtop 
        bind dtw-keymap ctx-viewtop
    ] 
    ctx-viewtop/init-desktop 
    if value? 'url [ctx-viewtop/show-folder :url] 
    do-events
]