DrawTextArcA

Text, Page layout

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to DrawTextArc and string arguments are interpreted using the current SetAnsiMode code page

Draws text fitted to an imaginary arc with the specified center point and radius. The text will be drawn with it's left edge at the requested angle, where 0 degrees is the "12 o'clock" position, and positive angles are clockwise. The SetTextAlign function can be used to change the alignment of the text relative to the specified angle.

Syntax

Delphi

Function DLDrawTextArcA(InstanceID: Integer; XPos, YPos, Radius, Angle: Double; Text: PAnsiChar; DrawOptions: Integer): Integer;

DLL

int DLDrawTextArcA(int InstanceID, double XPos, double YPos, double Radius, double Angle, const char * Text, int DrawOptions);

Parameters

XPosThe horizontal co-ordinate of the center of the arc
YPosThe vertical co-ordinate of the center of the arc
RadiusThe radius of the arc
AngleThe angle at which the text should be placed
TextThe actual text to draw
DrawOptions0 = Draw the text outside the arc in a clockwise direction 1 = Draw the text inside the arc in an anti-clockwise direction

Return values

0The text was blank or the DrawOptions parameter was out of range The text was drawn successfully
1