[lazarus] TMenuItem Delphi incompatibility

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Nov 15 20:25:47 EST 2003


On Sat, 15 Nov 2003 20:03:29 +0100
Martin Smat <martin.smat at tiscali.cz> wrote:

> 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







More information about the Lazarus mailing list