I've got a TActionList filled with actions I want to use. At times, these actions maybe disabled. If I use a TSpeedButton, and set it's action property to one of my actions, the bitmap changes. If I set the action to Enabled := false, the bitmap disappears. This is because I'm using a 16x16 bitmap with only a signle state (and NumGlyphs set to 1 for the SpeedButton).
If I change the ImageList to contain 32x16 glyphs, change the TSpeedButtons to use NumGlpyhs := 2, then all works well when I enable or disable the action.
Except for the menu items. The menu items show two images - the enabled and disabled state - per item.
My question is, how do you use the same ImageList and Action list to work with both TSpeedButtons and TMenuItems?