Class: Fzeet::FileSaveDialog

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

Constant Summary

Constants inherited from FileDialog

Fzeet::FileDialog::DialogStruct, Fzeet::FileDialog::HookProc

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 FileDialog

#dispose, #initialize, #path

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::FileDialog

Instance Method Details

#show(window = Application.window) ⇒ Object



186
187
188
189
190
# File 'lib/fzeet/windows/comdlg/FileDialog.rb', line 186

def show(window = Application.window)
	@struct[:hwndOwner] = window.handle

	DialogResult.new((Windows.GetSaveFileName(@struct) == 0) ? Windows::IDCANCEL : Windows::IDOK)
end