Class: VRProgressbar

Inherits:
VRNotifyControl show all
Defined in:
lib/vr/vrcomctl.rb

Constant Summary collapse

WINCLASSINFO =

VRProgressbar

Progressbar.

Methods

--- setRange(minr,maxr) Sets the range from ((|minr|)) to ((|maxr|)). --- position Returns the current position. --- position=(pos) Sets the current position. --- stepwidth=(st) Sets the step width for (()). --- step Steps one step in position. --- advance(n=1) Steps multi steps in position.

["msctls_progress32",0]

Instance Attribute Summary collapse

Attributes inherited from VRNotifyControl

#_vr_notifyarg

Attributes inherited from VRControl

#handlers, #name, #parent

Attributes inherited from VRWinComponent

#parent, #screen

Instance Method Summary collapse

Methods inherited from VRNotifyControl

#_vr_ntfyhandlers, #addFilterArg, #addNotifyHandler, #deleteFilterArg, #deleteNotifyHandler, #notifycontrolinit

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 Attribute Details

#maxrange ⇒ Object (readonly)

ooooo.....



1024
1025
1026
# File 'lib/vr/vrcomctl.rb', line 1024

def maxrange
  @maxrange
end

#minrange ⇒ Object (readonly)

oops!



1023
1024
1025
# File 'lib/vr/vrcomctl.rb', line 1023

def minrange
  @minrange
end

#stepwidth ⇒ Object

oops!



1022
1023
1024
# File 'lib/vr/vrcomctl.rb', line 1022

def stepwidth
  @stepwidth
end

Instance Method Details

#advance(n = 1) ⇒ Object



1047
1048
1049
# File 'lib/vr/vrcomctl.rb', line 1047

def advance(n=1)
  sendMessage WMsg::PBM_DELTAPOS,n.to_i,0
end

#position ⇒ Object

Raises:

  • (StandardError)


1044
1045
1046
# File 'lib/vr/vrcomctl.rb', line 1044

def position
  raise StandardError,"not implemented"
end

#position=(pos) ⇒ Object



1041
1042
1043
# File 'lib/vr/vrcomctl.rb', line 1041

def position=(pos)
  sendMessage WMsg::PBM_SETPOS,pos.to_i,0
end

#progressbarinit ⇒ Object



1026
1027
1028
1029
1030
# File 'lib/vr/vrcomctl.rb', line 1026

def progressbarinit
  @stepwidth=10
  @minrange=0
  @maxrange=100
end

#setRange(minr, maxr) ⇒ Object



1036
1037
1038
1039
1040
# File 'lib/vr/vrcomctl.rb', line 1036

def setRange(minr,maxr)
  @minrange=minr
  @maxrange=maxr
  sendMessage WMsg::PBM_SETRANGE,0,MAKELPARAM(minr,maxr)
end

#step ⇒ Object



1054
1055
1056
# File 'lib/vr/vrcomctl.rb', line 1054

def step
  sendMessage WMsg::PBM_STEPIT,0,0
end

#vrinit ⇒ Object



1031
1032
1033
1034
# File 'lib/vr/vrcomctl.rb', line 1031

def vrinit
  super
  progressbarinit
end