Questions tagged [wxlua]

wxLua is a Lua scripting language wrapper around the wxWidgets cross-platform C++ GUI library.

13 questions
10
votes
1 answer

Compiling wxLua (cross-platform & static)

I'm planning to create a new C++ project, write some C++ functions in it, embed a Lua engine with wxLua into it, make my C/C++ functions available to a Lua side and then write my main program (including the GUI) in Lua. My IDE/compiler are…
Forivin
  • 14,780
  • 27
  • 106
  • 199
2
votes
1 answer

Issues with io.read() in wxLUA (Does not wait for user input, Always returns nil)

I am just getting into Lua, and I am having issues with user input. No matter what I do, io.read() always returns nil. This is what I have tried, nothing works. name = io.read() print(name) name = io.read(7) print(name) print(io.read:()) All of…
a52
  • 232
  • 2
  • 9
2
votes
2 answers

wxLua - Need Dynamic reflow when changing text in a wxStaticText control

I have a static text control that changes it contents based on user actions. It is in a horizontal sizer with several other control. When the text changes, the control dynamically updates its size, but it doesn't dynamically adjust it's position in…
Stomp
  • 890
  • 1
  • 6
  • 19
1
vote
1 answer

wxExecuted process is not deleted when main window exits

I am using wxLua with wxWidgets 2.8.12 for Windows. In the following code, I try to asynchronously execute some command and redirect its output. The problem is, if I close main window before child process terminates, the child process is not…
Z.H.
  • 259
  • 1
  • 14
1
vote
1 answer

Lua userdata pass by reference - local functions in different files

I have 2 Lua files, namely mydialog.lua and rangecontrol.lua. The code in mydialog.lua is as follows: local function mydialog() --omitted local wb_responses=activeobj() --wb_responses points to the current activeobj(), say Obj1 …
macroland
  • 973
  • 9
  • 27
1
vote
1 answer

wxLua splitter window on resize

In the image snippet below, there is a splitter-sash between the tan Output window and the blue Command Line Args window. The user can change the width of the blue window (by dragging the splitter sash) if desired, but I want the blue window to…
Stomp
  • 890
  • 1
  • 6
  • 19
0
votes
1 answer

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…
Warcake
  • 23
  • 4
0
votes
1 answer

Using WxLua and need to install miniZip

Im using Wxlua for a GUI im building but need minizip for one of my functions but have no idea how to install minizine to my lua dir. I expect minizip = require('minizip') to work with my wxlua
A Hamburgler
  • 79
  • 1
  • 2
  • 7
0
votes
1 answer

WxLua GUI 2d mappinp

Ok guys so I’m trying to make a 2d map (a literal map of my game) for my gui. When in game I exported the terrain data to an external lua file which looks like this Info = { 1 = { Color = “blue”, x = 0, y = 0 }, ect ect...} basically one big array.…
A Hamburgler
  • 79
  • 1
  • 2
  • 7
0
votes
1 answer

wxLua remotely accessible GUI

I wanted to make a simple GUI for my application that would run on a linux based system and I want to make GUI that could be accessed remotely. I wanted to know if such a thing was possible with wxlua. That is, can I make a wxLua GUI for an…
Utkarsh
  • 1
  • 1
0
votes
1 answer

compiling lua applications using wxluafreeze problems

I am having a problem trying to compile a lua script to exe with wxluafreeze. I am typing this into cmd (all the files are in the same directory)- wxluafreeze.lua "wxluafreeze.exe" "test.lua" "newprog.exe" as well as wxluafreeze.lua…
Connor
  • 27
  • 1
  • 9
0
votes
1 answer

Combine wxLua with LuaJIT on Mac OS X

How do you build wxLua on Mac OS X (10.6.8) so that it uses LuaJIT2 instead of the standard Lua interpreter? I have tried: ./configure --with-lua-prefix=/Users/finnw/LuaJIT-2.0.0-beta9 where /Users/finnw/LuaJIT-2.0.0-beta9 is the directory in which…
finnw
  • 47,861
  • 24
  • 143
  • 221
-1
votes
1 answer

wxlua self changing value?

I'm trying to draw some stuff using wxlua. ExampleClass = {} function ExampleClass:New(someWxPanel) local obj = {} setmetatable(obj, self) self.__index = self self.m_panel = someWxPanel return obj end function ExampleClass:OnPaint() …
Piglet
  • 27,501
  • 3
  • 20
  • 43