THintInfo is deprecated

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #33545
    emailaya
    Participant

    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

    #41652
    Support
    Keymaster

    Will be changed in the next release.

    #41720
    emailaya
    Participant

    still happens in 6.56

    #41810
    emailaya
    Participant

    still happens in 6.57

    #41827
    emailaya
    Participant

    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;

    #41863
    Support
    Keymaster

    Thank you! Will be used in the nearest release.

    #47610
    emailaya
    Participant

    I'm now using D2009 + AC7.59 and I still have this warning appearing when compiling my project

    #47654
    Support
    Keymaster

    Hello! Try the version 7.6

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.