Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: I want Tk::Splashscreen not centered.

by keszler (Priest)
on Oct 24, 2013 at 09:47 UTC ( #1059419=note: print w/replies, xml ) Need Help??

in reply to I want Tk::Splashscreen not centered.

To move the splashscreen from the center, immediately after your $splash->Splash; command add $splash->geometry("+20+20");.

Replies are listed 'Best First'.
Re^2: I want Tk::Splashscreen not centered.
by ric00015 (Beadle) on Oct 24, 2013 at 14:54 UTC

    Alas, that didn't work either. I had the $splash->geometry("+20+20"); right after $splash->Splash;, just like you said, but no dice. I even put the geometry command right after the creation code: our $splash = $parent->Splashscreen(-milliseconds => 3000); but still it was stuck in the middle.

      The example program for Tk::Splashscreen is On my system (WinXP 64 w/ Activestate 5.12.2), adding the $splash->geometry("+20+20"); command as above succeeded in moving the splash window.

      If this isn't the case for you, please reduce your program to the minimum needed to demonstrate the problem and post it as a new question, along with details of your OS and Perl versions. (More people will see a new SoPW than will see new replies in this one.)

        Bam! I got it. The splash screen no longer lingers in the crack between screens. Thanks for your advice. I had to tinker with an example for a while. At first I was trying to make it duplicate the behavior I was seeing, but ended up doing it the right way and copied that over. :)

        I do have another question, but I'll go ahead and put it in another node, as you suggested.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059419]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2018-05-26 02:48 GMT
Find Nodes?
    Voting Booth?