Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>



Unicode hints
The Tnt Unicode components have a full widestring Hint property with which a unicode hint text can be set. To make sure the hint is shown with Unicode displayed, set the application hint window class as TntHintWindow, ie:
HintWindowClass := TntHintWindow; // If the system hint font does not support unicode, you can override this by creating a class: TTntHintWindowEx = class(TTntHintwindow) protected procedure CreateWindowHandle(const Params: TCreateParams); override; end; { TTntHintWindowEx } procedure TTntHintWindowEx.CreateWindowHandle(const Params: TCreateParams); begin inherited; Canvas.Font.Name := 'Arial Unicode MS'; end; // and set: HintWindowClass := TntHintWindowEx;