I am experimenting with toolbars now. Using an example from a previous thread
i have set up the toolbar to display a bitmap inline graphic.

I am now trying to see what default bitmaps are availiable i am using the
LoadImages method

$TB->LoadImages(["IDBITAMP"=>IDB_HIST_LARGE_COLOR],["HINSTANCE"=>HINST_COMMCTRL]);

Then to create the buttons

$TB->AddButtons(2, 
   (0, 0, TBSTATE_ENABLED ,TBSTYLE_BUTTON, 0),
   (1, 1, TBSTATE_ENABLED, TBSTYLE_BUTTON, 1)
   );

But i am not seeing any bitmap in the toolbar just a blank button and my
tooltip. I create the toolbar as follows

my $TB = $main->AddToolbar(
   -name      => 'TB',
   -height    => 25,
   -flat      => 1,  
   -pushstyle => TBSTYLE_LIST, 
   -pushstyle => TBSTYLE_TOOLTIPS,
   -onButtonClick => \&TB_Click);

Has any one else tried this or should i stick to the bitmap in line method.

If I stick with the bitmap in line are there any good bitmap libraries out
there that can be recommended

Thanks
Mike
-- 
View this message in context: 
http://www.nabble.com/Toolbar-bitmaps-tf3715894.html#a10394744
Sent from the perl-win32-gui-users mailing list archive at Nabble.com.


Reply via email to