Warcake
Warcake

Reputation: 23

How can I send a wxTextCtrl input to a wxListBox in wxLua?

I'm pretty new to both Lua and wxWidgets, and currently I am trying to show my input from a wxTextCtrl to my wxListBox by pressing a button. How can I do this same code but using wxLua instead of C++?

listPlayers->AppendString(txtUserInput->GetValue())

Upvotes: 0

Views: 75

Answers (1)

Piglet
Piglet

Reputation: 28950

listPlayers:AppendString(txtUserInput:GetValue())

Do yourself a favour and learn the very basics of Lua befor you continue using wxLua.

Upvotes: 2

Related Questions