Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Tk - always on top property 2

by didier (Vicar)
on Aug 28, 2003 at 12:29 UTC ( #287332=note: print w/replies, xml ) Need Help??


in reply to Tk - always on top property 2

Your hexa hwnd is not the good one :)
Here your script with a little update

Have a nice day :)
use Tk; use Tk::Balloon; use Win32::API; use vars qw/$Button/; my $mw = new MainWindow; $id_mw = $mw->id; $mw->Frame(-width=>200, height =>25); $mw->update; Win32::API->new("user32","SetWindowPos", [qw(N N N N N N N)],'N')->Call(hex($id_mw),-1,0,0,0,0,3); $Button=$mw->Button(-text => "Button", -command => sub { &do_something; })->pack(); my $balloon = $mw -> Balloon(-balloonposition => 'mouse', -initwait => 10, -bg => 'white'); $balloon -> attach($Button, -balloonmsg => "Button"); MainLoop; sub do_something { #sleep(10); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://287332]
help
Chatterbox?
[msh210]: Am I wrong?
[shmem]: no. You're right.
[msh210]: About time... last time I was right was... I don't even remember when.
[shmem]: perl -e 'warn "test$/", ^@^ '
[Eily]: well, at least it's right about warn doing the same thing as die :)
[shmem]: same with undef as last element
[msh210]: oh, good point. It's the best kind of correct
[shmem]: msh210: but I'd not call it a lie outright. That's when you do know the truth.
[msh210]: I don't have sendmail (I'm on MS Windows), so does one of you think you can report the bug?
[shmem]: msh210: 'tis about time to tell the sad truth to perl5porters - via perlbug

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (16)
As of 2017-04-24 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (439 votes). Check out past polls.