I have a vcl application with Delphi 10 Seattle with the high dpi awareness checked (which seems to be the default setting if you create a new application). In my application I have a popupmenu with icon images at the items. When the menu popups, everything looks fine (see picture 1). When moving with the mouse over the menu from down to up, all icons are disappearing where the mouse has been hovering (see picture 2). The icons however reappear if you move the mouse back from top to bottom.
Has anybody seen this effect before? Is there any cure?
By the way: This effect does not happen if the high dpi awareness is not checked in the projects settings.
This effect can be easily reproduced: (Of course only if you have a high dpi screen with scaling turned on)
- Create a new vcl project
- Add a popupmenu and an imagelist
- Set imagelist size to 32 pixels (I have 200% scaling)
- Add some items in the popup and some icons in the imagelist
- Set the forms popup property, the popups images porperty and the items index properties.
- Run and move the mouse...
MENUITEM
in thehbmpItem
field. stackoverflow.com/a/23254467/505088