pkulchenko / wxlua

wxlua: Lua bindings for wxWidgets cross-platform GUI toolkit; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and wxWidgets 3.x
306 stars 59 forks source link

wxRichTextCtrl not available #129

Closed aryajur closed 1 year ago

aryajur commented 1 year ago

Hi, Is wxRichTextControl available in the binding? I see some interface files but after compiling the latest release with the latest wxwidgets wx.wxRichTextCtrl is still nil. Do I need any extra step to enable it?

pkulchenko commented 1 year ago

@aryajur, yes, it should be, but you need to enable richtext as one of the components and make sure that wxwidgets is built with --enable-richtext:

    -DwxWidgets_COMPONENTS="richtext;xrc;xml;stc;gl;html;aui;adv;core;net;base" \
    -DwxLuaBind_COMPONENTS="richtext;xrc;xml;stc;gl;html;aui;adv;core;net;base" \
aryajur commented 1 year ago

Thank you!