Hi All,

Great announce,,,its what i need!...but i got a persistent error
[code]
ID_CLICK = 5
ID_CHECK = 6

taskbarIcon = wx.wxTaskBarIcon()
local icon = wx.wxIcon()
local bmp = wx.wxArtProvider.GetBitmap(wx.wxART_INFORMATION, 
wx.wxART_TOOLBAR, wx.wxSize(22, 22))
icon:CopyFromBitmap(bmp)
taskbarIcon:SetIcon(icon, "Tooltop for wxTaskBarIcon from controls.wx.lua")
icon:delete()
bmp:delete()

taskbarMenu = wx.wxMenu()
taskbarMenu:Append(ID_CLICK, "Click me", "Please click this", 
wx.wxITEM_NORMAL)
taskbarMenu:Append(ID_CHECK, "Check me", "Please check this", 
wx.wxITEM_CHECK)

taskbarIcon:Connect(wx.wxEVT_TASKBAR_LEFT_UP,
    function(event)
        taskbarIcon:PopupMenu(taskbarMenu)
    end)

taskbarIcon:Connect(wx.wxID_ANY, wx.wxEVT_COMMAND_MENU_SELECTED,
    function(event)
        print("Menu item with id = "..tostring(event:GetId()).." was 
clicked")
    end)

[/code]
Show me this error...wxLua: Attempt to call an invalid method 'PopupMenu'
i think is not PopupMenu  implemented

Sorry for my poor English!!!
Thx in Advanced


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to