in reply to display information in the box in a notification area

.....any where on screen?.....try this for Tk
#!/usr/bin/perl -w use strict; use Tk; my $mw = tkinit; my $notification = $mw->Toplevel(); $notification->geometry('+400+400'); $notification->withdraw; # Hide display window $notification->protocol('WM_DELETE_WINDOW' => sub { }); #$notification->overrideredirect(1); # Remove window decorations $notification->Label( -text => 'Your message displayed here.', -foreground => 'white', -background => 'black', -height => 5 )->pack; $mw->Button( -text => 'Display Notification Window', -command => \&display_note )->pack; MainLoop; sub display_note { $notification->deiconify; $notification->raise; # this is where you setup a condition to withdraw it $notification->after( 5000, \&hide_note ); } sub hide_note { $notification->withdraw; }
.... if you can use Gtk2, see Gtk2::StatusIcon Demo

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Replies are listed 'Best First'.
Re^2: display information in the box in a notification area
by abubacker (Pilgrim) on Dec 24, 2009 at 04:46 UTC

    Yeah that is really cool
    but is it possible to remove the minimize and maximize button in the dialog box ?

      ... yes....uncomment the line
      # $notification->overrideredirect(1); # Remove window decorations

      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku

        Yeah it is really really cool
        My requirements will complete if the parent or top level window hides or closed.
        while the child window exists