Hooking up wxRuby in other applications

Is there a way (class?) to be able to use wxRuby for subwindows in a
host application? (Windows and OSX platforms)

Best regards,

Jari W.

Hi Jari

Jari W. wrote:

Is there a way (class?) to be able to use wxRuby for subwindows in a
host application? (Windows and OSX platforms)

Not exactly, so far as I know.

You can get a platform-native handle for a Wx::Window (such as a host
frame) by using Window#get_handle. I guess it should be possible to use
this to directly interact with the native OS using Win32API or
RubyCocoa. If it were possible to host the application in wxRuby, and
then pass a handle to an external app to draw upon, it might work.

This is done regularly in C++ wxWidgets but I’ve never seen it tried in
wxRuby. Yet :wink:

best
alex

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs