]> gitweb.factorcode.org Git - factor.git/blob - basis/windows/dragdrop-listener/dragdrop-listener-docs.factor
Use canonical way to get HEAD SHA1
[factor.git] / basis / windows / dragdrop-listener / dragdrop-listener-docs.factor
1 ! Copyright (C) 2017 Alexander Ilin.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax kernel windows.ole32 ;
4 IN: windows.dragdrop-listener
5
6 ABOUT: "windows.dragdrop-listener"
7
8 ARTICLE: "windows.dragdrop-listener" "Dropping files onto listener window"
9 "The " { $vocab-link "windows.dragdrop-listener" } " vocab is a demo of the COM wrapping facilities. It allows you to drag-and-drop any file from the Explorer onto a listener window, and have the contents of that file parsed and executed immediately. If the file does not contain valid Factor source code, you will see compilation errors." $nl
10 "Register the current listener window to accept file drops:" $nl
11 { $subsections dragdrop-listener-window }
12 "Only one file at a time can be dropped." ;
13
14 HELP: dragdrop-listener-window
15 { $description "Run this word from a listener to activate drag-and-drop support for the listener window." $nl
16 "Note: if you get the \"" { $snippet "COM error 0x8007000e" } "\", you need to call " { $link ole-initialize } " first." } ;