Hello,
I noticed during intensiv testing GDI resources,
the Brushes called with :
oLbx:SetBackGround( oBrush )
and in Folders :
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
are added again and again to the List, after closing and reopening the Dialog.
A Test with a closed Dialog, still shows the Brushes from Browsers and Tabs :
The Browser-Brush is defined once on top of the Application, for all Browser-Backgrounds inside the Dialog. 27 Browsers are opened in 8 Folder-Pages like :
...
...
oLbx1 := TXBrowse():New( oFld:aDialogs[1] )
...
oLbx:SetBackGround( oBrush )
...
oLbx:CreateFromResource( 110 )
The Dialog includes a Folder with 8 Pages used like :
...
...
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT SetImages(oDlg,oFld)
RETURN NIL
// --------------------------
function SetImages(oDlg, oFld)
local oImageList
DEFINE IMAGELIST oImageList SIZE 16, 16
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oFld:SetImageList( oImageList )
return nil