Class: VREditCombobox

Inherits:
VRCombobox show all
Defined in:
lib/vr/vrcontrol.rb

Constant Summary collapse

WINCLASSINFO =
["COMBOBOX",WStyle::CBS_DROPDOWN | WStyle::CBS_AUTOSCROLL ]

Instance Attribute Summary

Attributes inherited from VRControl

#handlers, #name, #parent

Attributes inherited from VRWinComponent

#parent, #screen

Instance Method Summary collapse

Methods inherited from VRCombobox

#addString, #clearStrings, #countStrings, #deleteString, #eachString, #findString, #getDataOf, #getTextOf, #select, #selectedString, #setDataOf, #setDir, #setListStrings, #vrinitnew

Methods inherited from VRStdControl

#_vr_cmdhandlers, #addCommandHandler, #deleteCommandHandler

Methods inherited from VRControl

Controltype, #add_parentcall, #call_parenthandler, #create, #setFont

Methods inherited from VRWinComponent

#_init, #create, #exwinstyle, #hide, #maximizebox, #maximizebox=, #minimizebox, #minimizebox=, #setscreen, #sizebox, #sizebox=, #tabstop, #tabstop=, #winstyle

Instance Method Details

#textObject



819
820
821
# File 'lib/vr/vrcontrol.rb', line 819

def text
  self.caption
end

#text=(str) ⇒ Object



822
823
824
# File 'lib/vr/vrcontrol.rb', line 822

def text=(str) 
  self.caption = str.gsub(/([^\r])\n/,'\1'+VREdit::VR_REGEXPNEWLINE)
end

#vrinitObject



814
815
816
817
# File 'lib/vr/vrcontrol.rb', line 814

def vrinit
  super
  addCommandHandler(WMsg::CBN_EDITCHANGE, "changed",MSGTYPE::ARGNONE,nil)
end