예제 #1
0
//--------------------------------------------------------------------------//
//--------------------------------------------------------------------------//
bool CAGSymText::Read(CAGDocIO* pInput)
{
	if (!pInput)
		return false; // should never happen

	bool bReturn = CAGSym::Read(pInput);
	ReadColumn(pInput);

	return (bReturn);
}
예제 #2
0
파일: drv_key.c 프로젝트: biglai/STM32F0
//矩阵键盘,获取键码,返回 0x23,表示按钮是第2行第3列,行列都从1开始
static uint8_t GetMatrixKeyCode(void)
{
	uint8_t keyNo=0;
	ClrRow(0xff);	//所有行清零
	if(ReadColumn(0xff) != 0x0f)	//有键按下
	{
		for(uint8_t row=1; row<5; row++)
		{
			ClrRow(row);
			switch(ReadColumn(0xff))
			{
				case 	0x0e:	keyNo=0x01|row<<4;	break;	//1110
				case	0x0d:	keyNo=0x02|row<<4;	break;
				case	0x0b:	keyNo=0x03|row<<4;	break;
				case	0x07:	keyNo=0x04|row<<4;	break;
				default:		keyNo=0x00;					break;
			}
		}
		return keyNo;
	}
	else	return 0;
}
예제 #3
0
bool COLBLK::Eval(PGLOBAL g)
  {
#ifdef DEBTRACE
 htrc("Col Eval: %s status=%.4X\n", Name, Status);
#endif

  if (!GetStatus(BUF_READ)) {
//  if (To_Tdb->IsNull())
//    Value->Reset();
    if (To_Kcol)
      To_Kcol->FillValue(Value);
    else
      ReadColumn(g);

    AddStatus(BUF_READ);
    } // endif

  return false;
  } // end of Eval