TTMSFNCToolBarButton.Bitmaps, How to change the icons while running?

I added 2 icons to TTMSFNCToolBarButton.Bitmaps. I want to change the icons based on the busy status, but I don't know how.

Set the bitmap you want to use as bitmap with index 0.
For example, if you added two bitmaps, one with Name 'A' and one with Name 'B'
Lookup the name and move it to the first position by setting its Index to 0.

Can you give me sample code about changing TTMSFNCToolBarButton.Bitmaps?

For the bitmap at index X you want to make active set:
TMSFNCToolBarButton.Bitmaps[x].Index := 0;

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.