Contents | Index | < Browse | Browse >

 DIRECTORY LISTVIEWS
 ================================================================= 

 Example:
 > xListView 10 10 200 100 Title MyVar dh0:MyDir 10 DIR

 A Directory ListView is a listing of the files devices etc on
 your computer. See below for how to make it have images.

 A Directory Listview will not "Happen" unless double clicked upon.
 This is how it works :

 Clicking on a file or directory (single click) :
 -------------------------------------------------
   A DIR type Listview will not "happen" when the user just clicks
   an item once - only when he double clicks on it.

   If you need to be notified everytime the user single-clicks an
   item you have to declare a  xLVHook  event.

 Double clicking on a directory :
 ---------------------------------
   In this case, the directory will be entered into and displayed 
   automatically. If an  xLVDirHook  event has
   been declared for this gadget, it will be executed.

   This enables you to refresh the current LV directory name in
   some other part of your GUI.

 Double clicking on a file :
 ---------------------------
   In this case, the full path of the file will be stored into the
   Variable (quoted if needed), and the event commands attached to
   this particular ListView, executed.

 Reading the MultiSelected files :
 ---------------------------------
   The files which you may have multiselected can be read with 
   the  LVMulti  command, at any time.

 Images in Dir listviews :
 -------------------------
   You  can set default images to be used to precede each DEV, VOL,
   ASN, DIR or FILE item in Dir LVs. You just give the name of an
   image (which you must already have loaded with LoadImage) with
   >  SET  ImDEV/ImVOL/ImASN/ImDIR/ImFILE ImageName
   This can be done also from the Gui4Cli.gc gui.

   Note also that you can show images anywhere in listviews by stating:
   > this is a ESCMyImage test.. (where ESC is the escape char)

 General :
 ---------
   In controlling DirLVs, you can also use :

   The  LVDir  command.
   The  LV Internal Variables