Внимание

The forum is in read only mode.

  • Page:
  • 1

TOPIC: Missing OnClick event in StringGrid in Firemonkey

Missing OnClick event in StringGrid in Firemonkey 6 years 10 months ago #4342

After upgrading from Seatle to Berlin my Delphi multi-device application could no longer be compiled because Onclick and OnDoubleClick events seem no longer to be supported.

The events are no longer listed in the object inspector, but are still part of the help descriptions of the Tstringgrid.
So I believe there still is hope.

What do I need to do to get my application running again?

Many thanks ahead.

Missing OnClick event in StringGrid in Firemonkey 6 years 9 months ago #4496

It looks like the event are still present, but not published. However, you can assign event handlers in your own code. For example:

grdMembers.OnClick := MyOnClick;
grdMembers.OnDblClick := myOnDblClick;

With the implementation like:

procedure TframeMemberList.myOnClick(Sender: TObject);
begin
CodeSite.Send('MyOnClick');
end;

procedure TframeMemberList.myOnDblClick(Sender: TObject);
begin
CodeSite.Send('MyOnDblClick');
end;

This works on Windows as well as Mac OS X (haven't tested on mobile devices)...



Groetjes, Bob Swart

Missing OnClick event in StringGrid in Firemonkey 6 years 4 months ago #5630

There is not "update" for Berlin version that can solve that problem?
  • Page:
  • 1
Модераторы: April Anne