wlandgraf
(Wagner Landgraf)
December 16, 2022, 11:33pm
2
Records (like TRect
) require a special treatment. Nevertheless, there are a few examples in Support Center about how to use it, specifically in events. Here are some references:
Hello, I get this error: "Event adapter not defined" when I try code in event OnDrawColumnCell of DBGrid object.Please, I need help about this.Thanks.
Hello,
I would like to convert this event to scripter:
TOnDrawShape = procedure(const canvas: TCanvas; var rect: TRect;
item: TShape) of object;
I have done it like this:
procedure TatNativeShapeDispatcher.__TOnDrawShape(const canvas: TCanvas; var rect: TRect; item: TECShape);
var
rectTemp: Trect;
RestAdr:NativeUInt;
begin
if DoOnExecuteEvent then
begin
if AssignedMethod(BeforeCall) then
TOnDrawShape(BeforeCall)(canvas,rect,item);
rectTemp := rect;
if Assigne…
For some reason a customer who upgraded to our latest version is having an issue with an OnDrawCell event. They get the error: "TRzStringGrid: OnDrawCell Event adapter not defined." I see in the manual this:"the OnEvent handlers are not automatically defined by scripter. You must implement aTatEventDispatcher descendant class and use DefineEventAdapter method." But I couldn't find any information on how the DefineEventAdapter methods work in the docs. Here is how the procedure is defined:procedu…