Plagiarized from this site, created February 10th, 2006, which says:
This will probably reveal my ignorance of Tk more than anything, but
I'll risk it. Consider the following code:
use strict;
use Tk;
my $main = MainWindow->new(-title => "This is a test of a long title",
-width => 500);
MainLoop;
When I run this on a Windows XP box, the window's width is such that t
+he
title is mostly obscured. On a Win98 box, on the other hand, the title
is fully visible. What's more, changing the -width option seems to hav
+e
no effect on the window width on XP. Am I missing something? (To the
best of my knowledge, both machines have the same version of Tk.)
--
Eric Amick
Columbia, MD
s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
| [reply] [Watch: Dir/Any] [d/l] |
| [reply] [Watch: Dir/Any] |
I tried this on an XP box with Perl 5.6.1, Tk version 800, and this code displays perfectly fine. Title bar length was 500 pixels.
I also ran it from a linux box with Perl 5.8.3, Tk 804, and Perl 5.6.1, Tk 800, displaying it on the XP box using Exceed as the x-server. Those also displayed fine and in the exact same size.
Are you sure the versions are what you think they are? ($Tk::VERSION)
-imran | [reply] [Watch: Dir/Any] |
Um....
I am writing a program using Perl/Tk. I like it and haven't had much trouble with it.
When you say "the title is mostly obscured", what do you mean? Where does it cut off? Did you add any Frames to the MainWindow? Sometimes the way you pack frames in a window can have an effect on other things. | [reply] [Watch: Dir/Any] |
Just out of curiosity, have you modified the font and or font size on your system? I have done this in the past and had different programs 'look' strange. If you have, it might be something similar which would have nothing to do with Perl or Perl::TK itself.
<update: added questionmark and spelled different properly>
s&&VALKYRIE &&& print $_^q|!4 =+;' *|
| [reply] [Watch: Dir/Any] |
Hi. Your program worked as expected on WinXP Home; ActivePerl 5.8.7, build 813; and Tk version 8.4. This suggests that the reason why you are having difficulties isn't because of the OS you're using, but likely because of some other possibility. You may, for instance, have different Tk versions, despite thinking they are the same. You may want to double-check this before going too far.
| [reply] [Watch: Dir/Any] |