void Threads::UpdateActiveThread() { for (unsigned i = 0; i < numThreads; ++i) { wxColour c = (i == activeThread) ? wxColour(255, 255, 0) : GetDefaultCellBackgroundColour(); for (int x = 0; x < 2; ++x) SetCellBackgroundColour(i, x, c); } }
void CGridAllelePosCtrl::_SetRowEnabled(int nRow, bool bEnabled) { wxColour clr; if(bEnabled) { clr = GetDefaultCellBackgroundColour(); } else { clr = GetDisabledColour(); ClearRowValues(nRow); } SetRowReadOnly(nRow,!bEnabled); SetRowBackgroundColour(nRow,clr); }
void CGridAllelePosCtrl::_SetRowNextControl(int nRow) { if(nRow < 0) { nRow = _FindNextControlRow(); } if(nRow >= 0) { _SetRowEnabled(nRow,false); m_nRowNextControl = nRow; if(!m_bReadOnly) { SetReadOnly(nRow,0,false); SetCellBackgroundColour( nRow,0,GetDefaultCellBackgroundColour()); } } }