Class: Fzeet::FindDialog

Inherits:
FindReplaceDialog show all
Defined in:
lib/fzeet/windows/comdlg/FindReplaceDialog.rb

Constant Summary

Constants inherited from FindReplaceDialog

Fzeet::FindReplaceDialog::DialogStruct, Fzeet::FindReplaceDialog::HookProc, Fzeet::FindReplaceDialog::Message

Constants inherited from CommonDialog

CommonDialog::HookProc

Constants included from WindowMethods

WindowMethods::EnumChildProc

Instance Attribute Summary

Attributes inherited from CommonDialog

#struct

Instance Method Summary collapse

Methods inherited from FindReplaceDialog

#dispose, #findWhat, #frProc, #initialize, #onNotify, #replaceWith

Methods inherited from CommonDialog

crackMessage, #hookProc, #initialize, #on

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, #size, #size=, #style, #style?, #text, #text=, #textlen, #topmost=, #topmost?, #update, #visible=, #visible?, #xstyle, #xstyle?

Methods included from Toggle

#toggle

Constructor Details

This class inherits a constructor from Fzeet::FindReplaceDialog

Instance Method Details

#show(window = Application.window) ⇒ Object



147
148
149
150
151
152
153
154
155
156
# File 'lib/fzeet/windows/comdlg/FindReplaceDialog.rb', line 147

def show(window = Application.window)
	@struct[:hwndOwner] = window.handle
	@handle = Windows.DetonateLastError(FFI::Pointer::NULL, :FindText, @struct)

	self.dialog = true

	window.on(FindReplaceDialog::Message, &method(:frProc))

	self
end