[wxruby-users] Adding menu items to a TaskBar
Alex Fenton
alex at pressure.to
Mon Jan 14 06:28:15 EST 2008
Anton Komarov wrote:
> I'm looking for a way to add menu items to a task bar icon menu.
> I have created a popup menu.
> And I want to add to a task bar icon menu items for example projects but
> it must be after user log in.
> 1. User log in
> 2. getting list of projects
> 3. adding menu items into task bar menu with project
> I attch a file with source code which I already written
>
This came up recently on the mailing list:
http://rubyforge.org/pipermail/wxruby-users/2007-December/003506.html
Basically, just have your create_popup_menu method check whether the
login has taken place, and show the appropriate menu items. The method's
called anew each time the menu is shown.
alex
More information about the wxruby-users
mailing list