예제 #1
0
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);
	}
}
예제 #2
0
void CGridAllelePosCtrl::_SetRowEnabled(int nRow, bool bEnabled)
{
  wxColour clr;
  if(bEnabled)
  {
    clr = GetDefaultCellBackgroundColour();
  }
  else
  {
    clr = GetDisabledColour();
    ClearRowValues(nRow);
  }
  SetRowReadOnly(nRow,!bEnabled);
  SetRowBackgroundColour(nRow,clr);
}
예제 #3
0
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());
    }
  }
}