Hi all,
I use TSpeedbuttons in combination with glyphs ( see screenshot ) to modify the appearance of button icons for enabled and disabled state. For High DPI I loaded different icon resources based on the scaling in Windows OS.
Newer versions of Lazarus provide a more elegant way to do this with TImageList and the Scaled property. The TSpeedButton images ( PNG format ) scale fine depending on the Windows scaling value, but how can I get back the feature that the image changes between an enabled/disabled state of the button ?
The only solution I found so far is to add the "enabled" and "disabled" glyph to the TImageList and then switch the TSpeedButton.ImageIndex property to select the corresponding image.
Best regards