the sample Testfold.prg is not working, if I try to put bitmaps in the headers of the folder. The bitmaps are not shown.
Code: Select all
//Testfold.prg
DEFINE DIALOG oDlg RESOURCE "Test"
REDEFINE FOLDER oFld ID 110 OF oDlg ;
PROMPT "CA-Cli&pper", "&and", "&Windows", "&Magic" ;
DIALOGS "Sub1", "Sub2"
ACTIVATE DIALOG oDlg CENTERED ;
VALID MsgYesNo( "Want to end ?" ) ;
ON INIT SetImages( oDlg, oFld )
return nil
function SetImages( oDlg, oFld )
local oImageList
DEFINE IMAGELIST oImageList SIZE 16, 16
oImageList:AddMasked( TBitmap():Define( "new",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "open",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "search",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "print",, oDlg ), nRGB( 192, 192, 192 ) )
oFld:SetImageList( oImageList )
//oFld:SetPadding( 2, 5 )
//oFld:SetItemSize( 300, 18 )
return nil