The region is drawn on the page with a TppDrawShape draw command object. You can hook into the region's OnDrawCommandCreate event. Then get a handle to the region's draw command. Type cast it as a TppDrawShape and change its Pen property.
procedure TForm1.ppRegion1DrawCommandCreate(Sender, aDrawCommand: TObject); var lDrawRegion: TppDrawShape; begin
Comments
can hook into the region's OnDrawCommandCreate event. Then get a handle to
the region's draw command. Type cast it as a TppDrawShape and change its Pen
property.
procedure TForm1.ppRegion1DrawCommandCreate(Sender, aDrawCommand: TObject);
var
lDrawRegion: TppDrawShape;
begin
lDrawRegion := TppDrawShape(aDrawCommand);
lDrawRegion.Pen.Width := 10;
lDrawRegion.Pen.Color := clRed;
end;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com