Class: Fzeet::Header

Inherits:
Control show all
Includes:
HeaderMethods
Defined in:
lib/fzeet/windows/comctl/Header.rb

Constant Summary

Constants included from HeaderMethods

Fzeet::HeaderMethods::Prefix

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 HeaderMethods

#count, #insertItem, #modifyItem

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

Returns a new instance of Header.



176
177
178
179
180
# File 'lib/fzeet/windows/comctl/Header.rb', line 176

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

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

Class Method Details

.crackNotification(args) ⇒ Object



174
# File 'lib/fzeet/windows/comctl/Header.rb', line 174

def self.crackNotification(args) end

Instance Method Details

#on(notification, &block) ⇒ Object



182
183
184
185
186
# File 'lib/fzeet/windows/comctl/Header.rb', line 182

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

	self
end