Row colouring and cell editing functions for ListView controls.
Browse through the topics in the contents list to the right.
Initalization function for the LVX library. Must be called before all other functions.
name | associated variable name (or Hwnd) of ListView control to setup for colouring and cell editing. |
Makes the specified cell editable with an Edit control overlay.
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) |
The Edit control may be slightly larger than its corresponding row, depending on the current font setting.
Set the text of a specified cell.
text | new text content of cell |
row | (optional)row number |
col | (optional)column number |
Change accept/cancel hotkeys in cell editing mode.
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) |
The default hotkeys are Enter and Esc (Escape) respectively, and such will be used if either parameter is blank or omitted.
Set the background and/or text colour of a specific row on a ListView control.
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) |
Sorting will not affect coloured rows.
Helper function for internal use. Converts RGB to BGR.
i | BGR hex code |
Handler for WM_NOTIFY events on ListView controls. Do not use this function.