Delphi 2009 Actionmanager default Imagelist - delphi

I have just started a new project, and I am using the Delphi 2009 Actionmanager component for the first time.
The Actionmanager has a list of standard actions, which gives me actions such as File open / save without any coding - great stuff. Is there a standard ImageList to go with this, with the correct images for the default ImageIndex populated by the ActionManager?

If you connect your ActionManager with an TImageList before you fill in the standard actions then delphi copies the icons of these actions automatically in the attached ImageList (tested with Delphi 2010).

Related

How to search C++Builder component properties

Using C++Builder 10.3 VCL for Windows. I am using a TImageList and I need to search all of my project's components to identify which components use that TImageList in their Images property. When I do a search, it shows no results, apparently it is only searching the code. How can I search all the components properties to look for the TImageList?

Form.PixelsPerInch no longer used in Delphi Tokyo

In older Delphi's (for example Delphi XE4), it is clear what the Form.PixelsPerInch property is for. If I change this property and save the form, close and then reload it, all controls and fonts on the form will be resized accordingly.
However, in Delphi Tokyo (maybe since Seattle) making such a change has no effect on the controls on the form, and seems to serve no purpose.
Is this correct?
If Delphi Tokyo is not using the PixelsPerInch property I wonder how it can correctly scale the form at different DPI's..

TComboBox list won't drop down when using firemonkey styles in Delphi 10.1 Berlin

I'm having a problem with the FMX TComboBox component in Delphi 10.1 Berlin (and I've seen it in earlier XE versions as well). The problem is this.
I create a new multi-platform project, drop a TComboBox on an empty form, add a few items to TComboBox.Items, just as you'd do in VCL (this is FMX). Running it and clicking the button of the TComboBox and the items show in a drop down list just as they should.
Next, I drop a TStyleBook on the form, link the form with the StyleBook and load the Copper .style from the Premium firemonkey styles that come with Delphi 10.1 Berlin.
Now, when I run the app, the items of the combo box won't show when I click the drop down button. But I can select the items using up and down arrow keys. If I clear the style, the combobox works again.
So, obviously there is either something wrong with the style (have tried other with the same effect) or I'm missing something.
(I also tried to use the Add TListBoxItem from the right-click menu, but the problem remained).

TBitBtn displays only using legacy Windows theme

I created the manifest file for my Delphi 6 application so it can display controls according to the theme defined by Windows (controls 6.0). Everything looks fine, except TBitBtn component, which is displayed using the legacy theme:
The behavior is the same on Windows XP and Windows 7, regardless of the current theme, even when no image is assigned to the TBitBtn component.
Now, when I put a regular TButton component on a form, it displays OK. If I then programmatically set an image to this button in runtime (using SendMessage(Handle, BM_SETIMAGE, IMAGE_ICON, LPARAM(Icon))), it immediately reverts its style to the legacy one.
Is there a way to either make TBitBtn use a proper style, or to display glyph on a regular TButton without reverting to the legacy one in Delphi 6?
In Delphi 6 it is not enough just to add the comctl32 v6 manifest. You also need to modify the VCL to be theme aware. The TBitBtn control is a VCL implemented control that, in its Delphi 6 incarnation, does not know anything about XP themes.
The standard way to deal with this is to add some third party software that performs the magic. That's the XP theme manager from Mike Lischke.
Here's a screenshot from a Delphi 6 application that includes the theme manager:

TPanel color is black no matter what

I just activated the themes in my Windows XP (usually I work using the classic Win9x look) and I have seen that two panels are pure black. Other panels are ok (color = clBtnFace).
What these 2 panels have in common is their parent. Both are placed directly on a TForm. If I move them to a different parent (another panel for example) the have the appropriate color.
Delphi 7, win xp pro
This is another grandiose Delphi bug. I started do delete stuff from my project and recompile the project. After one hour I finally went to the main form. I deleted the XPManifest control and now, magically, the program works.
The new issue (XPMan) is discussed here: TPanel color is black when I drop a XPManifest control on my form
Edit:
Removing the XPMan is not enough. You will have to delete also the RES files. For large applications it may take a while to manually reconstruct that file. Maybe it works to big into that file and manually remove the resources added by XPMan.
Make sure the panels do not have ParentColor=false and Color=clBlack assigned to them, and that ParentBackground=true is assigned.

Resources