Contents | Index | < Browse | Browse >
LISTVIEW COMMANDS
----------------------------
Listviews have the following dedicated Event Commands.
All the commands (except LVUse) will act on the CURRENT listview,
or the CURRENT RECORD of the current listview.
LVUSE GuiFile GadID
- Loading saving files :
LVCHANGE NewFromFile
LVSAVE SaveFileName
LVCLEAR
- Handling listviews :
LVGO first|next|prev|last|#LineNumber
LVMOVE +-offset (do also #rec)
LVFIND String
LVSORT ASC|DSC|%FieldName
LVSEARCH string cs|ci first|next
LVREP OldString NewString CI|CS
LVSWITCH Gui ID
- Acting on records :
LVADD String
LVINSERT RecordNumber String
LVPUT string
LVDEL LineNumber (or -1 for current line)
LVCLIP CUT|COPY lines|-1 ADD|PASTE|INSERT gui ID
- MultiSelect listviews :
LVMULTI First|Next|ON|OFF
- Commands for DIRECTORY LISTVIEWS :
LVDIR All|None|Parent|Root|Disks|#dirname(string)
LVACTION COPY|COPYNEW|MOVE|DELETE|SIZE|PROTECT|CLI Dest|REQ|NOREQ|Var|Mask
- Various :
LVMODE NUM|TXT|MULTI|DIR
- Gadget modifier :
LVCOLORS GuiFile GadID ForeGround BackGround Selected Dirs
(it is better to use attributes for colors etc)
- DataBase listview commands :
DBSUM ALL|SELECTED|UNSELECTED %FieldName ResultVar
RECSORT %FieldName
--------------------------------------------------------------------
An example gui : Run Gui Source
*** IMPORTANT: A note about acting on listviews ***
It is *much* faster to HIDE an lv and act on it (with commands
like lvadd, lvput etc) and then SHOW it again, than to have the LV
updated continuously while actions are going on. When you show it
again, you must "nudge" it into redrawing itself - with LVMULTI SHOW
or LVMOVE 0