Module: VRFocusSensitive
- Includes:
- VRMessageHandler
- Defined in:
- lib/vr/vrhandler.rb
Constant Summary
Constants included from VRMessageHandler
VRMessageHandler::PREHANDLERSTR
Instance Method Summary collapse
-
#focussensitiveinit ⇒ Object
VRFocusSensitive This is a module to sense getting/losing focus.
- #vrinit ⇒ Object
Methods included from VRMessageHandler
#acceptEvents, #addHandler, #addNoRelayMessages, #controlmsg_dispatching, #deleteHandler, #msghandlerinit, #selfmsg_dispatching
Instance Method Details
#focussensitiveinit ⇒ Object
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 |
#vrinit ⇒ Object
92 93 94 95 |
# File 'lib/vr/vrhandler.rb', line 92 def vrinit super focussensitiveinit end |