Bug in TacToolBarWnd.DrawBtn Root › Technical support › Troubleshooting This topic has 5 replies, 3 voices, and was last updated 1 year, 8 months ago by Support. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts September 10, 2022 at 11:16 am #71003 LasseParticipant 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 September 10, 2022 at 5:36 pm #71004 LasseParticipant Well, variable i is also used for loop. So, better to add other variable for imagelist handle… September 14, 2022 at 7:05 am #71005 chris2023Participant 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. September 14, 2022 at 7:14 am #71008 chris2023Participant 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. September 14, 2022 at 4:10 pm #71012 LasseParticipant You should add a new variable for imagelist handle and let the i variable be Integer. HIMAGELIST is the type that is used elsewhere. March 12, 2023 at 6:45 pm #71139 SupportKeymaster Hello! The AlphaControls package v17 has been released today, the issue has been solved there. Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In Root › Technical support › Troubleshooting