Class: Fzeet::Tab

Inherits:
Control show all
Includes:
TabMethods
Defined in:
lib/fzeet/windows/comctl/Tab.rb

Constant Summary collapse

Prefix =
{
	xstyle: [:tcs_ex_, :ws_ex_],
	style: [:tcs_, :ws_],
	message: [:tcm_, :ccm_, :wm_],
	notification: [:tcn_, :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 TabMethods

#[], #count, #current, #insert

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

Returns a new instance of Tab.



130
131
132
133
134
135
136
# File 'lib/fzeet/windows/comctl/Tab.rb', line 130

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

	style << :clipsiblings

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

Class Method Details

.crackNotification(args) ⇒ Object



128
# File 'lib/fzeet/windows/comctl/Tab.rb', line 128

def self.crackNotification(args) end

Instance Method Details

#on(notification, &block) ⇒ Object



138
139
140
141
142
# File 'lib/fzeet/windows/comctl/Tab.rb', line 138

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

	self
end