Example #1
0
void
ClueListBox::OnDrawBackground(wxDC & dc, const wxRect & rect, size_t n) const
{
    if (IsSelected(n))
        dc.SetBackground(GetSelectionBackground());
    else
        dc.SetBackground(GetBackgroundColour());

    dc.Clear();
}
void ContentBoxCtrol::OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const
{
    if ( IsSelected(n) )
    {
        dc.SetBrush( wxBrush(GetSelectionBackground(), wxSOLID) );
    }
    else // !selected
    {
        dc.SetBrush( wxBrush(*wxWHITE, wxSOLID) );
    }

}
Example #3
0
wxColour
wxHtmlListBox::GetSelectedTextBgColour(const wxColour& WXUNUSED(colBg)) const
{
    return GetSelectionBackground();
}