Contents | Index | < Browse | Browse >


                   ClipBoard support 
  
   Listviews  now have Clipboard support for text clips.

  The amiga ClipBoard is a device somewhere in ram to which
  you can read or write text blocks, temporarily. It's the
  place where text that you CUT or COPY from various editors
  etc is stored until it can be PASTEd somewhere by the same
  or some other program. (Note that some editors do not use
  the clipboard and so no-one else but them has access to
  their cut/copy/paste text blocks). 

  As far as I know, the clipboard can have 256 such "units" 
  numbered 0 to 255. By default the clipboard unit is No. 0 
  and most programs will only use this unit.

  This is how the clipboard is accessed from Gui4Cli :

  Reading the clipboard :
  -----------------------
  If you try to load a file into the listview (either on startup
  or via  LVCHANGE ) then this file will be checked first and :

  o If the path starts with "CLIPS:" and has a clipboard unit
    number (0-255), Gui4Cli will read into the listview whatever
    happens to be in the clipboard unit specified.
    ex : LVCHANGE Clips:1
    - will load into the lv the contents of clipboard unit 1

  o Otherwise, if the file is a standard IFF FTXT clip file
    it will be loaded as such - i.e. only the text

  Writing to the clipboard :
  --------------------------
  Again, if you try to save the contents of a listview with 
   LVSAVE  and if the filename path is something like CLIPS:0 then 
  the lv contents will be written to the given clipboard unit.

  ex : LVSAVE Clips:3
  - will save the lv contents into clipboard unit No 3

  Note that if you give LVSAVE Ram:clipboards/1 (or Clips:myfile)
  the file will be saved normally - not as iff - and you'll confuse 
  the hell out of everybody..

  Here is a ClipBoard viewer gui :   Run Gui   -   See source