From: mikemc <mik...@bt...> - 2007-05-09 13:52:41
|
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. |
From: Jason P. <jp...@un...> - 2007-05-09 14:11:28
|
I have often used the Win32::GUI::Icon lib to load my images for my buttons. Also, and this may have only been a typo, but did you mean IDBITMAP and not IDBITAMP in the LoadImages call? -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of mikemc Sent: Wednesday, May 09, 2007 9:53 AM To: per...@li... Subject: [perl-win32-gui-users] Toolbar bitmaps 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_COMMC TRL]); 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. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users http://perl-win32-gui.sourceforge.net/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 2:23 PM |
From: mikemc <mik...@bt...> - 2007-05-09 15:21:22
|
You are right it was a typo. I it is spelt wrong in the documentation, i just cut and pasted it. Although that was not the cause of my problem Jason Plum wrote: > > I have often used the Win32::GUI::Icon lib to load my images for my > buttons. > > > Also, and this may have only been a typo, but did you mean IDBITMAP and > not > IDBITAMP in the LoadImages call? > > -----Original Message----- > From: per...@li... > [mailto:per...@li...] On Behalf Of > mikemc > Sent: Wednesday, May 09, 2007 9:53 AM > To: per...@li... > Subject: [perl-win32-gui-users] Toolbar bitmaps > > > 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_COMMC > TRL]); > > 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. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 5/8/2007 > 2:23 > PM > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > > -- View this message in context: http://www.nabble.com/Toolbar-bitmaps-tf3715894.html#a10396449 Sent from the perl-win32-gui-users mailing list archive at Nabble.com. |
From: Robert M. <rob...@us...> - 2007-05-09 19:45:54
|
On 09/05/07, mikemc <mik...@bt...> wrote: > You are right it was a typo. I it is spelt wrong in the documentation, i just > cut and pasted it. Although that was not the cause of my problem Is that typo in Win32::GUI documentation? If so, can you let me know where, so I can fix it. Thanks, Rob. |