-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Hey,
currently i#m working on zerobrane and wanted to add somethings to make my life easier. I added a extra window. In this window i wanted to show the frame of a different Program. With wxWidgets its possible and i already tried it but wxlua does not has all the function i need(for example retrieving the window handle and associate it with a wxwindow/wxPanel..). So i wanted to do this in c++. Got the lua5.1 source code. Added the needed functions in c++. Told lua about the new functions. Started lua, executed src/main.lua and hey everything worked. Even the environment knows the function which i wrote.
Now the Problem. I create a wxWindow object in lua with wxua. Now i want to get this object into my c++ code but it does not work. Lua says: "expected userdata, received: value at this index reflect the desired type".
My c++ Function just gets WxWindow Object in the header.
So how can i get a wxObject from lua to c++?