Skip to content

wxWindow from wxlua to c++ #136

@Abooow786

Description

@Abooow786

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++?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions