MoshiachNow
IS-IT--Management
HI,
I'm having bad time figuring out how to set a bitmap/image for my button.I did try different bitmaps/images.
Do dnot seem to find the definition for Tk_GetBitmap.
The following code gives me errors:
$Info[$i]=$tl->Button(-bitmap=>"$INSTPATH1\\ICPDF.bmp",-command =>sub{\&openReadme("$tempdir\\$readme")},
-relief=>'raised',-anchor=>'w')->pack();
Error:
Tk::Error: bitmap "D:\DOcuments\myscripts\ICPDF.bmp" not defined at d:/Perl/lib/Tk/Widget.pm line 205, <FILE2> line 2.
at D:\DOcuments\myscripts\colorserver_upd1.pl line 1080
(processing "-bitmap" option)
Tk callback for .frame2.table.button
Tk callback for .frame.button
Tk::__ANON__ at d:/Perl/lib/Tk.pm line 252
Tk::Button::butUp at d:/Perl/lib/Tk/Button.pm line 111
<ButtonRelease-1>
Long live king Moshiach !
I'm having bad time figuring out how to set a bitmap/image for my button.I did try different bitmaps/images.
Do dnot seem to find the definition for Tk_GetBitmap.
The following code gives me errors:
$Info[$i]=$tl->Button(-bitmap=>"$INSTPATH1\\ICPDF.bmp",-command =>sub{\&openReadme("$tempdir\\$readme")},
-relief=>'raised',-anchor=>'w')->pack();
Error:
Tk::Error: bitmap "D:\DOcuments\myscripts\ICPDF.bmp" not defined at d:/Perl/lib/Tk/Widget.pm line 205, <FILE2> line 2.
at D:\DOcuments\myscripts\colorserver_upd1.pl line 1080
(processing "-bitmap" option)
Tk callback for .frame2.table.button
Tk callback for .frame.button
Tk::__ANON__ at d:/Perl/lib/Tk.pm line 252
Tk::Button::butUp at d:/Perl/lib/Tk/Button.pm line 111
<ButtonRelease-1>
Long live king Moshiach !