tmenuitem

Sending WM_COMMAND to a TMenuItem

In my Delphi form's OnShow method, I determine that a dialog must be opened automatically once the form is opened - and I should be able to do this by simulating a click on a menuitem. However, calling menuitem.Click brings up the dialog before the main form has opened - which is not what I want. I expect that should do what I want, bu...

In Lazarus, how to check whether a MenuItem has a Bitmap assigned?

Hi all, I wrote some Lazarus code that loops through the menu items of the main menu and needs to see whether there's a bitmap assigned to each menu item. I tried to check with if Assigned (MenuItem.Bitmap) then... but this always returns true, whether a bitmap is assigned or not. Guess the bitmap will be filled with an empty one i...