Create an Open or Save dialog box to let user select the name of a file.
More...
Create an Open or Save dialog box to let user select the name of a file.
- Examples:
- filebox-txt.cpp, and notepad.cpp.
nana::filebox::filebox |
( |
window |
owner, |
|
|
bool |
is_open_mode |
|
) |
| |
nana::filebox::filebox |
( |
const filebox & |
other | ) |
|
nana::filebox::~filebox |
( |
| ) |
|
Add a filetype filter.
To specify multiple filter in a single description, use a semicolon to separate the patterns(for example,"*.TXT;*.DOC;*.BAK").
- Parameters
-
description | for example: "Text File" |
filetype | filter pattern(for example: "*.TXT") |
- Examples:
- filebox-txt.cpp, and notepad.cpp.
filebox & nana::filebox::allow_multi_select |
( |
bool |
allow | ) |
|
Sets a initial filename.
Suggest a filename when filebox starts. If the filename contains a path, the initial path will be replaced with the path presents in initial filename.
- Parameters
-
filename | a filename used for a initial filename when filebox starts. |
- Returns
- reference of *this.Init file, if it contains a path, the init path is replaced by the path of init file.
Sets a initial path.
Suggest initial path used to locate a directory when the filebox starts.
- Note
- the behavior of init_path is different between Win7 and Win2K/XP/Vista, but its behavior under Linux is conformed with Win7.
- Parameters
-
path | a path of initial directory |
- Returns
- reference of *this.
a function object method alternative to show() to display the filebox dialog,
void nana::filebox::owner |
( |
window |
handle | ) |
|
Change owner window.
Changes the owner window for the filebox. When show()/operator()# are invoked, the dialog of filebox will be created with the specified owner.
- Parameters
-
handle | A handle to a window which will be used for the owner of filebox |
Changes new title.
Changes the title. When show()/operator()# are invoked, the dialog of filebox will be created with the specified title.
- Parameters
-
- Returns
- the reference of *this.