LVX Library (version 1.04)

Contents

Row colouring and cell editing functions for ListView controls.
Browse through the topics in the contents list to the right.

LVX_Setup

Initalization function for the LVX library. Must be called before all other functions.

LVX_Setup(name)

Parameters

name associated variable name (or Hwnd) of ListView control to setup for colouring and cell editing.

LVX_CellEdit

Makes the specified cell editable with an Edit control overlay.

LVX_CellEdit(r, c, set)

Parameters

r (optional)row number (default: 1)
c (optional)column (default: 1)
set (optional)true to automatically set the cell to the new user-input value (default: true)

Remarks

The Edit control may be slightly larger than its corresponding row, depending on the current font setting.

LVX_SetText

Set the text of a specified cell.

LVX_SetText(text, row, col)

Parameters

text new text content of cell
row (optional)row number
col (optional)column number

LVX_SetEditHotkeys

Change accept/cancel hotkeys in cell editing mode.

LVX_SetEditHotkeys(enter, esc)

Parameters

enter comma seperated list of hotkey names/modifiers that will save the current input text and close editing mode
esc same as above but will ignore text entry (i.e. to cancel)

Remarks

The default hotkeys are Enter and Esc (Escape) respectively, and such will be used if either parameter is blank or omitted.

LVX_SetColour

Set the background and/or text colour of a specific row on a ListView control.

LVX_SetColour(index, back, text)

Parameters

index row index (1-based)
back (optional)background row colour, must be hex code in RGB format (default: 0xffffff)
text (optional)similar to above, except for font colour (default: 0x000000)

Remarks

Sorting will not affect coloured rows.

LVX_RevBGR

Helper function for internal use. Converts RGB to BGR.

LVX_RevBGR(i)

Parameters

i BGR hex code

LVX_Notify

Handler for WM_NOTIFY events on ListView controls. Do not use this function.

LVX_Notify()

Version 1.04; Copyright © Titan - zlib License