Class: Fzeet::UpDown

Inherits:
Control show all
Includes:
UpDownMethods
Defined in:
lib/fzeet/windows/comctl/UpDown.rb

Constant Summary collapse

Prefix =
{
	xstyle: [:ws_ex_],
	style: [:uds_, :ws_],
	message: [:udm_, :ccm_, :wm_],
	notification: [:udn_, :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 UpDownMethods

#buddy=, #position=, #range=

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) ⇒ UpDown

Returns a new instance of UpDown.



64
65
66
67
68
# File 'lib/fzeet/windows/comctl/UpDown.rb', line 64

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

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

Class Method Details

.crackNotification(args) ⇒ Object



62
# File 'lib/fzeet/windows/comctl/UpDown.rb', line 62

def self.crackNotification(args) end

Instance Method Details

#on(notification, &block) ⇒ Object



70
71
72
73
74
# File 'lib/fzeet/windows/comctl/UpDown.rb', line 70

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

	self
end