TeeGrid OnTap

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
TheOtherPrefontaine
Newbie
Newbie
Posts: 28
Joined: Tue Aug 22, 2023 12:00 am

Re: TeeGrid OnTap

Post by TheOtherPrefontaine » Mon Aug 04, 2025 12:02 pm

This is still an issue with the latest version...

Marc
Site Admin
Site Admin
Posts: 1332
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: TeeGrid OnTap

Post by Marc » Wed Aug 06, 2025 3:50 pm

Hello ,

This is being re-checked. We'll put up a demo shortly that we can use as a common test-bed.

Regards,
Marc Meumann
Steema Support

TheOtherPrefontaine
Newbie
Newbie
Posts: 28
Joined: Tue Aug 22, 2023 12:00 am

Re: TeeGrid OnTap

Post by TheOtherPrefontaine » Wed Aug 06, 2025 5:02 pm

Thanks much !

Marc
Site Admin
Site Admin
Posts: 1332
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: TeeGrid OnTap

Post by Marc » Fri Aug 08, 2025 2:45 pm

Hello,

We'll follow up with the example project to highlight this, but my tests run here are giving better positioning results using the Mousedown event in the Android project than Tap.

Example:

Code: Select all

procedure THeaderFooterForm.TeeGrid1MouseDown(Sender: TObject;
  Button: TMouseButton; Shift: TShiftState; X, Y: Single);
var
  myRow : Integer;
  myX, myY: single;
  hgt : single;
begin
  myX := X;
  myY := Y;
  hgt :=  TeeGrid1.Height;

  myRow := TeeGrid1.Rows.RowAt(myY,hgt);
  TeeGrid1.Selected.Row :=myRow;

  Label1.Text := IntToStr(TeeGrid1.Selected.Row);
end;
Tap is working but empirical tests (so far) show the need to add a small vertical offset of 15 pixels for the vertical cells' demarcation line. Using RAD Studio 12.1, TeeGrid v1.18.

Regards,
Marc
Steema Support

Post Reply