Bug in TacToolBarWnd.DrawBtn

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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 3 years, 5 months ago by chris2023.
        • This reply was modified 3 years, 5 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 3 years, 5 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 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.