Class: Fzeet::FileSaveDialog
- Inherits:
-
FileDialog
- Object
- CommonDialog
- FileDialog
- Fzeet::FileSaveDialog
- Defined in:
- lib/fzeet/windows/comdlg/FileDialog.rb
Constant Summary
Constants inherited from FileDialog
Fzeet::FileDialog::DialogStruct, Fzeet::FileDialog::HookProc
Constants inherited from CommonDialog
Constants included from WindowMethods
Instance Attribute Summary
Attributes inherited from CommonDialog
Instance Method Summary collapse
Methods inherited from FileDialog
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
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 |