DrawHTMLTextBoxA
Text, HTML 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 DrawHTMLTextBox and string arguments are interpreted using the current SetAnsiMode code page
Similar to the DrawHTMLText function, but the text drawn is limited to a specific area. The remaining HTML text is returned, which can be passed to this function again (perhaps on a different page or location) until the function returns an empty string. See Appendix A for details of the supported HTML tags.
Syntax
Delphi
Function DLDrawHTMLTextBoxA(InstanceID: Integer; Left, Top, Width, Height: Double; HTMLText: PAnsiChar): PAnsiChar;
DLL
const char * DLDrawHTMLTextBoxA(int InstanceID, double Left, double Top, double Width, double Height, const char * HTMLText);
Parameters
| Left | Horizontal co-ordinate of the left edge of the drawing area Vertical co-ordinate of the top edge of the drawing area |
|---|---|
| Top | |
| Width | The width of the drawing area |
| Height | The height of the drawing area |
| HTMLText | The HTML text to draw |
Return values
| LeftOverText | A "string" containing the text that did not fit into the TextBox. This value can be resused to draw the undrawn text into a new text box often on the next page. |
|---|