ImageEn, unit IEVect

TImageEnVect.SetObjBitmapICO

TImageEnVect.SetObjBitmapICO


Declaration

procedure SetObjBitmapICO(hobj: integer; ico: integer; iwidth, iheight: integer);


Description

Specifies the hobj (iekBITMAP) image as standard windows icon.
ico can be OIC_SAMPLE, OIC_HAND, OIC_QUES, OIC_BANG, OIC_NOTE, OIC_WINLOGO, OIC_WARNING, OIC_ERROR, OIC_INFORMATION (look at windows.pas).
iwidth and iheight are icon width and height.


Example

// Sets system icon OIC_HAND of 64x64 as images of next inserted object iekBITMAP
ImageEnVect1.SetObjBitmapICO(IEV_NEXT_INSERTED_OBJECT, OIC_HAND, 64, 64);


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of SetObjBitmapICO, use: WindowsGetStockIcon

WindowsGetStockIcon( SIID_INFO, bmp );
TIEImageLayer( ImageEnView1.CurrentLayer).Bitmap.Assign( bmp );
ImageEnView1.Update();