Class: VRUpdown
Constant Summary
collapse
- WINCLASSINFO =
VRUpdown
Updown control.
===Methods
--- setRange(minr,maxr)
Sets the range from ((|minr|)) to ((|maxr|)).
--- getRange
Returns the range as an array [minr,maxr]
--- position
Returns current position.
--- position=
Sets current position.
--- base
Radix.
--- base=(b)
Sets the radix that is 10 or 16.
Event handlers
--- ????_changed(pos)
Fired when the position is changing from ((|pos|)).
Note that ((|pos|)) is a previous value. To obtain the current value,
use buddy control which is a (edit) control made directry before
the updown control(using VREdit#changed or its parent handler).
["msctls_updown32",0]
Instance Attribute Summary
#_vr_notifyarg
Attributes inherited from VRControl
#handlers, #name, #parent
#parent, #screen
Instance Method Summary
collapse
#_vr_ntfyhandlers, #addFilterArg, #addNotifyHandler, #deleteFilterArg, #deleteNotifyHandler, #notifycontrolinit
Methods inherited from VRControl
Controltype, #add_parentcall, #call_parenthandler, #create, #setFont
#_init, #create, #exwinstyle, #hide, #maximizebox, #maximizebox=, #minimizebox, #minimizebox=, #setscreen, #sizebox, #sizebox=, #tabstop, #tabstop=, #winstyle
Instance Method Details
1263
1264
1265
|
# File 'lib/vr/vrcomctl.rb', line 1263
def base
sendMessage WMsg::UDM_GETBASE,0,0
end
|
1260
1261
1262
|
# File 'lib/vr/vrcomctl.rb', line 1260
def base=(b)
sendMessage WMsg::UDM_SETBASE,b.to_i,0
end
|
1256
1257
1258
|
# File 'lib/vr/vrcomctl.rb', line 1256
def position
sendMessage WMsg::UDM_GETPOS,0,0
end
|
#setRange(minr, maxr) ⇒ Object
1245
1246
1247
|
# File 'lib/vr/vrcomctl.rb', line 1245
def setRange(minr,maxr)
sendMessage WMsg::UDM_SETRANGE,0,MAKELPARAM(maxr,minr)
end
|
1240
1241
1242
1243
|
# File 'lib/vr/vrcomctl.rb', line 1240
def vrinit
super
updowninit
end
|
#vrinitnew ⇒ Object
2
3
4
5
|
# File 'lib/vr/compat/vrcomctl.rb', line 2
def vrinit
super
updowninit
end
|