Method: VRFocusSensitive#focussensitiveinit

Defined in:
lib/vr/vrhandler.rb

#focussensitiveinitObject

VRFocusSensitive

This is a module to sense getting/losing focus.

Event Handlers

— self_gotfocus()

This method is fired when the window get focus.

— self_lostfocus()

This method is fired when the window lose the focus.


86
87
88
89
90
# File 'lib/vr/vrhandler.rb', line 86

def focussensitiveinit
  addHandler WMsg::WM_SETFOCUS,   "gotfocus",   MSGTYPE::ARGNONE,nil
  addHandler WMsg::WM_KILLFOCUS,  "lostfocus",  MSGTYPE::ARGNONE,nil
  acceptEvents [WMsg::WM_SETFOCUS,WMsg::WM_KILLFOCUS]
end