Module: VRInputboxDialog

Includes:
VRParent, VRStdControlContainer
Included in:
VRInputbox
Defined in:
lib/vr/vrdialog.rb

Constant Summary

Constants included from VRMessageHandler

VRMessageHandler::PREHANDLERSTR

Constants included from VRParent

VRParent::DEFAULT_FONT, VRParent::VR_ADDCONTROL_FEWARGS

Instance Attribute Summary

Attributes included from VRParent

#screen

Instance Method Summary collapse

Methods included from VRStdControlContainer

#self_wmcommand, #stdcontrolcontainerinit

Methods included from VRMessageHandler

#acceptEvents, #addHandler, #addNoRelayMessages, #controlmsg_dispatching, #deleteHandler, #msghandlerinit, #selfmsg_dispatching

Methods included from VRParent

#addArrayedControl, #addControl, #clearControls, #construct, #countControls, #create, #createControl, #deleteControl, #newControlID, #parentinit, #registerControl, #registerControlAsArrayed, #self_created, #send_parent

Instance Method Details

#msghandler(msg) ⇒ Object



386
387
388
389
390
391
392
393
394
395
396
397
398
# File 'lib/vr/vrdialog.rb', line 386

def msghandler(msg)
  if msg.msg == WMsg::WM_INITDIALOG then
    self.setItemTextOf(@options["target"],@options["default"].to_s)
  end

  if msg.msg == WMsg::WM_COMMAND then
    if msg.wParam==@options["okbutton"] then
      close self.getItemTextOf(@options["target"])
    elsif msg.wParam==@options["cancelbutton"] then
      close false
    end
  end
end

#vrinitObject



381
382
383
384
# File 'lib/vr/vrdialog.rb', line 381

def vrinit
  super
  target = @options["target"]
end