I set a string value for an item using
combo_box:Append('localhost', wx.wxStringClientData('127.0.0.1'))
combo_box:Select(0)
Then I try to access the value again
local selection = combo_box:GetSelection()
local object = combo_box:GetClientObject( selection )
local address = object:GetData()
But the stack appears to stop at GetData()
I imagine it's because a wxClientData is returned by GetClientObject
instead of the proper wxStringClientData but I'm not sure...
Any help?
I'm basically trying to achieve the same thing I do in html.. you have
display values and then a real value... In my game it's a list of
hostnames to ip addresses...
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users