Can’t open multiview with tap

  

I have a TRectangle with a TChart on it (chart Align is on Client). The TChart has HitTest set to false. I have the following code that should open a Multiview when the TChart is tapped on iOS (tap passes through to the rectangle):

void __fastcall TForm1::RectanglePlotTap(TObject *Sender, const TPointF &Point)
{
Form1->MultiViewPlotOptions->ShowMaster();
ShowMessage(“tap”);
}

When i tap the only thing that happens is the “tap” message pops up. The multiview does not appear.

So, i added the following click event

void __fastcall TForm1::RectanglePlotClick(TObject *Sender)
{
Form1->MultiViewPlotOptions->ShowMaster();
ShowMessage(“click”);
}

Now, if i tap and drag my finger a short distance i get the “click” message and my multiview appears. If I just tap then I get the “tap” popup and no multiview.

What could be the deal?

I use that same “tap” approach in several other places in my app and they all work correctly, opening their respective multiviews when I tap. I was just experimenting here and left that “click” event in place and i found this weird behavoir. I can’t figure out why the Tap by itself is not working as it does in other places of my app.

I’m working in Rad Studio 10.3 (on iOS) and i’m using TeeChart Pro VCL-FMX (build 2019.28) but I don’t think that is the issue. I say that because in other places in my app i’m clicking “through” a TChart to fire a Tap event on the underlying control and it works fine (opens its Multiview with just a tap).

Comments are closed.