Hi
I have notice the buttons creating by the standard Tk::Dialogbox look very nice, for example on my Windows 10 PC. Normal TK buttons created with Button... no. As far I can tell, the Tk::Dialogbox uses the underlying system. Is there any possibility to have such buttons also in the rest of my Tk GUI? Here is the script to test the two kind of buttons and see the difference.
#!/usr/local/bin/perl use Tk; my $mw = new MainWindow; $mw->geometry( "300x300" ); my $label = $mw -> Label(-text=>"Hello World") -> pack(); my $button = $mw -> Button(-text => "Show", -command => sub { showmessage(); }) -> pack(); MainLoop; sub showmessage{ $mw->messageBox (-message=>"The glossary has been merged", -icon=> + 'info'); }
In reply to Tk Buttons look by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |