Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

TMenuItem Delphi incompatibility

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Smat
Hi,
in LCL is declared property TMenuItem.Graphic:  TGraphic;
in Delphi is declared property TMenuItem.Bitmap: TBitmap;
In Lazarus is not possible to get the icon handle without typecasting
(menuitem.Graphic as TBitmap).Handle;

Can it be changed or has it any reason?

Martin Smat.

Reply by email

Mattias Gaertner
to Martin Smat
Show quoted text 8 lines
Hi, in LCL is declared property TMenuItem.Graphic: TGraphic; in Delphi is declared property TMenuItem.Bitmap: TBitmap; In Lazarus is not possible to get the icon handle without typecasting (menuitem.Graphic as TBitmap).Handle; Can it be changed or has it any reason?

At the time of writing, I was not sure, if menu icons can/will always be a TBitmap.
Now TBitmap is the default interface format. So, it can be used. I changed it.

Mattias

Reply by email