Suppressing selection highlighting in M.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -24,8 +24,10 @@
|
|||||||
|
|
||||||
#ifdef M_BASEDIR
|
#ifdef M_BASEDIR
|
||||||
# include "gui/wxllist.h"
|
# include "gui/wxllist.h"
|
||||||
|
# undef SHOW_SELECTIONS
|
||||||
#else
|
#else
|
||||||
# include "wxllist.h"
|
# include "wxllist.h"
|
||||||
|
# define SHOW_SELECTIONS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef USE_PCH
|
#ifndef USE_PCH
|
||||||
@@ -1631,16 +1633,20 @@ wxLayoutList::IsSelected(const wxLayoutLine *line, CoordType *from,
|
|||||||
void
|
void
|
||||||
wxLayoutList::StartHighlighting(wxDC &dc)
|
wxLayoutList::StartHighlighting(wxDC &dc)
|
||||||
{
|
{
|
||||||
|
#ifdef SHOW_SELECTIONS
|
||||||
dc.SetTextForeground(m_ColourBG);
|
dc.SetTextForeground(m_ColourBG);
|
||||||
dc.SetTextBackground(m_ColourFG);
|
dc.SetTextBackground(m_ColourFG);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Ends highlighting the selection
|
/// Ends highlighting the selection
|
||||||
void
|
void
|
||||||
wxLayoutList::EndHighlighting(wxDC &dc)
|
wxLayoutList::EndHighlighting(wxDC &dc)
|
||||||
{
|
{
|
||||||
|
#ifdef SHOW_SELECTIONS
|
||||||
dc.SetTextForeground(m_ColourFG);
|
dc.SetTextForeground(m_ColourFG);
|
||||||
dc.SetTextBackground(m_ColourBG);
|
dc.SetTextBackground(m_ColourBG);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user