Allow showing rules and background on entire wxListCtrl window

Previously they were both limited to the part occupied by the items
only, add a new method allowing to extend them to the whole client
window area.

See https://github.com/wxWidgets/wxWidgets/pull/2106
This commit is contained in:
Marcos
2020-10-30 14:27:42 -03:00
committed by Vadim Zeitlin
parent 1cf7c47934
commit 584d1ae47d
6 changed files with 131 additions and 10 deletions

View File

@@ -1333,6 +1333,30 @@ public:
*/
void CheckItem(long item, bool check);
/**
When the content of state is true, tells listctrl to draw
horizontal and vertical rulers on blank rows and also to
paint the background of alternate rows on blank rows, using
colour to paint the alternate blank(empty) rows' background.
As EnableAlternateRowColours(), this method can only be used with
controls having ::wxLC_REPORT and ::wxLC_VIRTUAL styles.
This method is NOT available on Windows.
@param state
if @true, draws horizontal rules and vertical rules on empty rows
and uses the colour parameter to paint the background of
alternate rows when those rows are blank, empty, with no data.
@param colour
A valid row background colour to enable alternating rows on
blank rows (rows with no data).
@since 3.1.5
@note This method is currently NOT implemented in the Windows version.
*/
void SetListRulesAlternateColourOnBlank(const bool state, const wxColour& colour);
protected:
/**