Function TWPRTFEnginePaint.UpdateCodePage : Integer

Unit: WPRTEPaint
Class: WPRTEPaint.TWPRTFEnginePaint

Returns

The type of the result value is Integer.

Description

Reads the current keyboard code page and stores it into the variable _CodePage. This variable can be used for the function InputString, it is not used automatically! The code page will be used to convert to unicode and also to calculate the correct charset for the entered text. The charset is inportant for correct PDF output.
Please note that in unit WPCTRMemo, procedure KeyPress the method UpdateCodePage is executed for each character.