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>)).

— 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

#maxrangeObject (readonly)

ooooo.….



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

def maxrange
  @maxrange
end

#minrangeObject (readonly)

oops!



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

def minrange
  @minrange
end

#stepwidthObject

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

#positionObject

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

#progressbarinitObject



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

#stepObject



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

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

#vrinitObject



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

def vrinit
  super
  progressbarinit
end