Board index » cppbuilder » MouseMove Over On StringGrid

MouseMove Over On StringGrid


2008-06-09 05:09:36 PM
cppbuilder18
Dear All,
StringGrid owns MouseMove Event, how to display ACol ARow value when I mouse
move over on the cells?
Thanks for any comments and help
James
 
 

Re:MouseMove Over On StringGrid

"James5950" < XXXX@XXXXX.COM >, haber iletisinde sunlari
yazdi: XXXX@XXXXX.COM ...
Quote
Dear All,

StringGrid owns MouseMove Event, how to display ACol ARow value when I
mouse move over on the cells?
TStringGrid has a MouseToCell method for that. So,
void __fastcall TForm1::StringGrid1MouseMove(TObject *Sender,
TShiftState Shift, int X, int Y)
{
int ARow, ACol;
StringGrid1->MouseToCell(X, Y, ARow, ACol);
}
UO
 

Re:MouseMove Over On StringGrid

Thank you, UO
Best regards,
James
 

{smallsort}

Re:MouseMove Over On StringGrid

Quote
StringGrid1->MouseToCell(X, Y, ARow, ACol);
Sorry, it should :
StringGrid1->MouseToCell(X, Y, ACol, ARow);
UO