Hello Sergey,
is it possible to support unicode hint in RVE?
I still have version 10 but my app is fully unicode (using TNT everywhere), and it seems the RVE is the only control that will not support unicode hint,
Is there a trick to work out with TNT?
Costas
unicode hint on trichviewedit
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Here is a workaround:
Costas
Code: Select all
unit twTntRichViewEdit;
interface
uses TntControls, RVEdit, Controls, Classes;
type
TTntRichViewEdit = class(TRichViewEdit)
private
function GetHint: WideString;
function IsHintStored: Boolean;
procedure SetHint(const Value: WideString);
protected
procedure CreateWindowHandle(const Params: TCreateParams); override;
published
property Hint: WideString read GetHint write SetHint stored IsHintStored;
end;
procedure Register;
implementation
{ TTntRichViewEdit }
procedure TTntRichViewEdit.CreateWindowHandle(const Params: TCreateParams);
begin
CreateUnicodeHandle(Self, Params, '');
end;
function TTntRichViewEdit.GetHint: WideString;
begin
Result := TntControl_GetHint(Self)
end;
function TTntRichViewEdit.IsHintStored: Boolean;
begin
Result := TntControl_IsHintStored(Self)
end;
procedure TTntRichViewEdit.SetHint(const Value: WideString);
begin
TntControl_SetHint(Self, Value);
end;
procedure Register;
begin
RegisterComponents('My Components', [TTntRichViewEdit]);
end;
end.