Please enable JavaScript to view this site.

KOL/MCK - User Guide

Set_LVItemHeight(i) - allows you to set the height of items (this method must be called before creating a window for an object so that the system can call the OnMeasureItem event);

SetLVItemHeight(i) - similar to the previous one, but the "through" method;

LVItemHeight - a property that allows you not only to set the height of the item (using Set_LVItemHeight), but later "remember" what height was set for the items;

LVTextColor - sets the color for the text font (should be used instead of changing Font.Color);

LVTextBkColor - sets the color for filling the background of the text in the elements;

OnDrawItem- called for each list item to display it (when lvoOwnerDrawFixed is present in the options). The handler should render the entire content of the element, including subelements - in the lvsDetail and lvsDetailNoHeader view modes;

OnLVCustomDraw - called to perform more detailed custom drawing of elements and / or subelements (as well as the title, and parts of the client area that does not contain elements). This handler will only work if the options lack the lvsOwnerDrawFixed style. Each time the window is drawn, this handler is called repeatedly, for the entire list, for the entire element, and (possibly) for each sub-element of each element, and at each of the drawing stages: prepaint (preparation for drawing), preerase (preparation for erasing the background), erase (erasing the background), paint (drawing the element), posterase (after erasing the background), postpaint (after painting the element). On each of these calls, the handler must return some flags that tell the system when else to call this handler while drawing continues. On the one hand, it is the most flexible and powerful tool for performing any custom control of the drawing process in the list box, on the other hand, everything is so complicated that it is rather difficult to understand all the twists and turns at once. The set of demo projects contains a special project (DemoLVCustomDraw) with a demonstration of the code of this handler. When writing your own handler, you can take it as a basis.

 

KOL / MCK User Guide - Created by Carl Peeraer - Diamant Soft, based on the work of Vladimir Kladov - Artwerp.be

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Nav Header: ALT+n
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Exit Menu/Up: ESC