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 centre 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
| XPos | The horizontal co-ordinate of the centre of the arc |
|---|---|
| YPos | The vertical co-ordinate of the centre of the arc |
| Radius | The radius of the arc |
| Angle | The angle at which the text should be placed |
| Text | The actual text to draw |
| DrawOptions | 0 = Draw the text outside the arc in a clockwise direction 1 = Draw the text inside the arc in an anti-clockwise direction |
Return values
| 0 | The text was blank or the DrawOptions parameter was out of range The text was drawn successfully |
|---|---|
| 1 |