to load Resource into Imagelist i use
- Code: Select all Expand view
- iIcon := LoadIcon( GetResources(), "ICOUP" )
iIcon := LoadIcon( GetResources(), "ICODOWN" )
iImage := ILADDICON( ::oImageLHeader:hImageList, iIcon )
and
- Code: Select all Expand view
- iIcon := LoadBitmap( GetResources(), "GRID_ASC" )
iIcon := LoadBitmap( GetResources(), "GRID_DSC" )
iImage := ILADD( ::oImageLHeader:hImageList, iIcon )
it work with Icon but fail(?) on Bitmap that Way
---
when use "File"-Icon i use
- Code: Select all Expand view
- iTemp_0 := Icon_Read( ::cPath + cFile, 32 )
ILADDICON( ::oImageListSmall:hImageList, iTemp_0 )
and
- Code: Select all Expand view
- aBitmaps := ::oWnd:ReadImage( ::cPath + cFile, { ::nIcoSmall + 8, ::nIcoSmall + 8 } )
iTemp_0 := aBitmaps[ 1 ]
ILADD( ::oImageListSmall:hImageList, iTemp_0 )
here both work
what can be the Problem that Bitmap from Resource seems not to work
it there another Way to load Bitmap Resource into Imagelist