when setting an event onShowHint for sHintManager, i get the following warning for both interface and implementation:
procedure sHintManager1ShowHint(var HintStr: string; var CanShow: Boolean;
var HintInfo: THintInfo; var Frame: TFrame);
[DCC Warning] Main.pas(831): W1000 Symbol 'THintInfo' is deprecated: 'Use Controls.THintInfo'
im using D2009 so i guess there is another way to implement this without getting this warning
thanks
Page 1 of 1
THintInfo is deprecated
#5
Posted 09 March 2010 - 06:02 PM
here is how to solve it:
{$IFDEF UNICODE}
THintInfo = Controls.THintInfo;
{$ENDIF}
TacShowHintEvent = procedure (var HintStr: string; var CanShow: Boolean; var HintInfo: THintInfo; var Frame : TFrame) of object;
{$IFDEF UNICODE}
THintInfo = Controls.THintInfo;
{$ENDIF}
TacShowHintEvent = procedure (var HintStr: string; var CanShow: Boolean; var HintInfo: THintInfo; var Frame : TFrame) of object;
#6
Posted 11 March 2010 - 08:29 AM
Thank you! Will be used in the nearest release.
Kind wishes, Serge
Share this topic:
Page 1 of 1

Help











