Class: Fzeet::FileSaveDialog
- Inherits:
-
FileDialog
- Object
- Handle
- CommonDialog
- FileDialog
- Fzeet::FileSaveDialog
- Defined in:
- lib/fzeet/Dialog/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
Attributes inherited from Handle
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
Methods inherited from Handle
#attach, #detach, #dup, instance, instance?, wrap
Constructor Details
This class inherits a constructor from Fzeet::FileDialog
Instance Method Details
#show(window = Application.window) ⇒ Object
76 77 78 79 80 |
# File 'lib/fzeet/Dialog/FileDialog.rb', line 76 def show(window = Application.window) @struct[:hwndOwner] = window.handle DialogResult.new((Windows.GetSaveFileName(@struct) == 0) ? Windows::IDCANCEL : Windows::IDOK) end |