by TimStone » Wed Aug 22, 2007 7:03 pm
Good morning,
Yes, I'm using tToolbar. I was advised to do this by Antonio a couple of years ago. So ...
The following is the start of the code:
// First create the ImageList object for all the bitmaps
oImageList := TImageList():New( 28, 28 ) // width and height of bitmaps
// Now create the toolbar object for adding the buttons
oToolBar := TToolBar():New( oWnd, 30, 32, oImageList )
From here I actually add the buttons with the following lines:
oImageList:AddMasked( TBitmap():Define( "CLIP", , oWnd ), nRGB( 255, 255, 255 ) )
oToolBar:AddButton( { || PRO100M( )}, "Workorders", ) // "Work" )
Yes, the same result is seen in XP