Bug in TacToolBarWnd.DrawBtn

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #71003
    Lasse
    Participant

    Variable i should be THandle not Integer in TacToolBarWnd.DrawBtn procedure (acSBUtils.pas).

    There was a similar bug in Delphi which was lately fixed. https://quality.embarcadero.com/browse/RSP-38505

    #71004
    Lasse
    Participant

    Well, variable i is also used for loop. So, better to add other variable for imagelist handle…

    #71005
    chris2023
    Participant

    No , I think you have to do this

    i : {$IFDEF DELPHI_XE2} NativeInt {$ELSE} integer {$ENDIF} ;

    The first Parameter of ImageList_Draw is a HIMAGELIST , and
    HIMAGELIST is a NativeInt
    Thandle is a NativeUInt

    • This reply was modified 2 years, 2 months ago by chris2023.
    • This reply was modified 2 years, 2 months ago by chris2023.
    #71008
    chris2023
    Participant

    Oops should to be

    i : {$IFDEF DELPHI_XE2} NativeUInt {$ELSE} DWord {$ENDIF} ;

    The first Parameter of ImageList_Draw is a HIMAGELIST , and
    HIMAGELIST is a NativeUInt
    Thandle is also a NativeUInt

    • This reply was modified 2 years, 2 months ago by chris2023.
    #71012
    Lasse
    Participant

    You should add a new variable for imagelist handle and let the i variable be Integer. HIMAGELIST is the type that is used elsewhere.

    #71139
    Support
    Keymaster

    Hello!
    The AlphaControls package v17 has been released today, the issue has been solved there.

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