Using RAP to create a clickable dbtext-Field
In RAP, I tried to make my dbtext-field clickable:
1.) Coded the OnDrawCommandCreate-event
2.) Coded teh OnDrawCommandClick-event
But it doesn't except anything for the tag-property of the DrawCoammand.
It's alway zero (0), when the OnDrawCommandClick is fired.
Coded in Delphi everything works perfect. Is this a known RAP problem or can
someone give me a hint or send me a demo?
Best regards,
James Inform
1.) Coded the OnDrawCommandCreate-event
2.) Coded teh OnDrawCommandClick-event
But it doesn't except anything for the tag-property of the DrawCoammand.
It's alway zero (0), when the OnDrawCommandClick is fired.
Coded in Delphi everything works perfect. Is this a known RAP problem or can
someone give me a hint or send me a demo?
Best regards,
James Inform
This discussion has been closed.
Comments
I tested this in RAP.
When I implement the OnDrawCommandCreate like this it works properly
var
lDrawCommand: TppDrawCommand;
begin
lDrawCommand := TppDrawComand(aDrawCommand);
lDrawCommand.Tag := 55;
end;
But this does not
begin
TppDrawCommand(aDrawCommand).Tag := 56;
end;
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com