Contents | Index | < Browse | Browse >


Listview Hooks :

   xLVDirHook HookID/GadID
   xLVHook    HookID/GadID

These two events act according to what happens to the ListView which 
has the same "HookID".

The HookID of a listview is the same as it's GadID number, unless you
want to be picky and change it with the  LVDirHook  gadget
modifier (You no longer need to use the LVDirHook modifier - just use
the GadID instead - it's better).

      xLVDirHook -  will "Happen" if the Dir ListView that has
the same HookID changes directories (by the user double clicking on it).
When this happens, you can, for example, refresh the place where you
display the path the dir-listview is currently at.

      xLVHook    -  will happen if the MULTI or DIR listview that has
the same HookID is clicked once (otherwise, the LV itself will only happen 
if the user double-clicks on it)

The  $$LV_DIR,  $$LV_GUI, and $$LV_ID Internal Variables will
contain the appropriate values.

ex :

; This is a DIR listview with an ID of 1
xListview  0 10 200 100 '' Variable sys: 0 DIR
GadID 1

; This is it's dirhook - happens whenever a dir is double-clicked
xLVDirHook 1
SetWinTitle  MyGui '$$LV.DIR                                '

; This is it's simple-hook - happens whenever the list is single-clicked
xLVHook 1
Say 'File chosen is $Variablen'