How to find HWND of vruby VRForm

This is most likely down to my lack of experience with Ruby but I am
struggling to obtain the microsoft windows HWND relating to a VRForm
object when using VRuby.

The class hierarchy
http://www.osk.3web.ne.jp/~nyasu/vruby/referer/vr/VRForm.html indicates
that VRForm inherits from SWin::Window which has the property hWnd.

However, attempting to refer to this property using the following;

puts MyForm.hWnd

gives the error;

undefined method `hWnd’ for MyForm:Class (NoMethodError)

If I create an SWin::Window I can successfully refer to the hWnd
property.

Since VRForm derives SWin::Window why can’t I refer to that property?

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