Class: Fzeet::ProgressBar

Inherits:
Control
  • Object
show all
Includes:
ProgressBarMethods
Defined in:
lib/fzeet/windows/comctl/ProgressBar.rb

Constant Summary collapse

Prefix =
{
	xstyle: [:ws_ex_],
	style: [:pbs_, :ws_],
	message: [:pbm_, :ccm_, :wm_],
	notification: [:nm_]
}

Constants included from WindowMethods

WindowMethods::EnumChildProc

Instance Attribute Summary

Attributes inherited from Control

#id, #parent

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ProgressBarMethods

#marquee=, #marquee?, #position=, #step!, #step=

Methods inherited from Control

#dispose

Methods included from WindowMethods

#[], #capture=, #capture?, #dialog=, #dialog?, #dlgmsg?, #drawMenuBar, #eachChild, #enabled=, #enabled?, #focus=, #focus?, #invalidate, #location, #location=, #long, #menu, #menu=, #message, #paint, #position, #position=, #postmsg, #question, #rect, #reframe, #sendmsg, #show, #size, #size=, #style, #style?, #text, #text=, #textlen, #topmost=, #topmost?, #update, #visible=, #visible?, #xstyle, #xstyle?

Methods included from Toggle

#toggle

Constructor Details

#initialize(parent, id, opts = {}, &block) ⇒ ProgressBar

Returns a new instance of ProgressBar.



54
55
56
57
58
59
60
# File 'lib/fzeet/windows/comctl/ProgressBar.rb', line 54

def initialize(parent, id, opts = {}, &block)
	super('msctls_progress32', parent, id, opts)

	@marquee = false

	@parent.on(:notify, @id, &block) if block
end

Class Method Details

.crackNotification(args) ⇒ Object



52
# File 'lib/fzeet/windows/comctl/ProgressBar.rb', line 52

def self.crackNotification(args) end

Instance Method Details

#on(notification, &block) ⇒ Object



62
63
64
65
66
# File 'lib/fzeet/windows/comctl/ProgressBar.rb', line 62

def on(notification, &block)
	@parent.on(:notify, @id, Fzeet.constant(notification, *self.class::Prefix[:notification]), &block)

	self
end