Forums: THintInfo is deprecated - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

THintInfo is deprecated

#1 User is offline   emailaya 

  • Wise man
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 547
  • Joined: 25-February 08

Posted 06 February 2010 - 03:59 PM

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
0

#2 User is offline   Support 

  • AC Team developer
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 9,278
  • Joined: 20-September 04

Posted 10 February 2010 - 09:58 AM

Will be changed in the next release.
Kind wishes, Serge
0

#3 User is offline   emailaya 

  • Wise man
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 547
  • Joined: 25-February 08

Posted 15 February 2010 - 08:55 PM

still happens in 6.56
0

#4 User is offline   emailaya 

  • Wise man
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 547
  • Joined: 25-February 08

Posted 06 March 2010 - 04:11 PM

still happens in 6.57
0

#5 User is offline   emailaya 

  • Wise man
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 547
  • Joined: 25-February 08

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;


0

#6 User is offline   Support 

  • AC Team developer
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 9,278
  • Joined: 20-September 04

Posted 11 March 2010 - 08:29 AM

Thank you! Will be used in the nearest release.
Kind wishes, Serge
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic