void __fastcall TForm::Form1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y) { switch( Button ) { mbLeft: // ---- break; mbRight: // ---- break; mbMiddle: // ----- break; default: // ---- } }
void __fastcall TForm1::DBGrid1DrawColumnCell(TObject *Sender, const TRect &Rect, int DataCol, TColumn *Column, TGridDrawState State) { if(State.Contains(gdSelected)) { //Выделенная строка см. Help } }//---------------------------------------------------------------------------