in TFOLDEREX loading Tab images from RESOURCE ( DLL ) doesn't work
Loading the image from FILE it is Ok.
Using images ( 32 bit alphablended ) from DLL on all other controls like buttons is working fine.
My tests
The FISHES.dll and books.bmp for testing
Download
http://www.pflegeplus.com/DOWNLOADS/Testdll1.zip
- Code: Select all Expand view
SET RESOURCES TO c_path + "FISHES.dll"
aBitmaps1 := { "BOOKS",; // from DLL
"BOOKS",;
"BOOKS",;
"BOOKS",;
"BOOKS" }
aBitmaps2 := { c_path + "Books.bmp",; // from code
c_path + "Books.bmp",;
c_path + "Books.bmp",;
c_path + "Books.bmp",;
c_path + "Books.bmp" }
DEFINE DIALOG oDlg1 TITLE "Test folder from CODE" SIZE 550, 560 PIXEL OF oWnd BRUSH oBrush0
@ 15, 10 FOLDEREX SIZE 260, 180 oFld1 PIXEL ROUND 5 UPDATE ;
PROMPT "Page &1", "Page &2", "Page &3", "Page &4", "&EXIT" OF oDlg1 ;
BITMAPS aBitmaps2 ; // from code OK
...
...
// in folderpage 1 ( display books from DLL ) :
@ 100, 220 BITMAP oBmp2 RESOURCE "BOOKS" OF oFld1:aDialogs[1] ;
SIZE 24, 24 PIXEL NOBORDER
oBmp2:cTooltip := "Image"
oBmp2:lTransparent := .T.
missing tab-images using < aBitmaps1> from resource
@ 15, 10 FOLDEREX SIZE 260, 180 oFld1 PIXEL ROUND 5 UPDATE ;
PROMPT "Page &1", "Page &2", "Page &3", "Page &4", "&EXIT" OF oDlg1 ;
BITMAPS aBitmaps1 ; // from DLL
regards
Uwe