Skip to Main Content
Volume 7B: XView Reference Manual
book

Volume 7B: XView Reference Manual

by Dan Heller
September 1991
Intermediate to advanced content levelIntermediate to advanced
311 pages
7h 17m
English
O'Reilly Media, Inc.
Content preview from Volume 7B: XView Reference Manual
Callback 2:
int
save_callback( fc, path, stats )
File_chooser fc;
char * path;
struct stat * stats;
path is the full path of the file to be saved.
stats is a pointer to the file’s stat structure if the file exists, or
NULL if the file
does not exist.
If the file exists, it is up to the application to check the permissions from the stat structure
and act accordingly. The File Chooser package will confirm with the user before
overwriting an existing file prior to issuing the callback; this may be prevented with
FILE_CHOOSER_NO_CONFIRM. Thus, if this callback is issued, the user expects the file
to be written or overwritten. It is the responsibility of the client to alert the user of any
failures with the appropriate feedback.
FILE_CHOOSER_SAVE_TO_DIR
If set TRUE, the Save/As: typein becomes blank and inactive, while the Save button remains active. In
the default state (FALSE), the behavior is that the Save button is inactive whenever the Save/As:
typein becomes empty.
Argument: Bool
Default:
FALSE
Procs: create, get, set
Objects: File_chooser
See Also: Appendix D, Version 3.2 and the File Chooser, of XView Programming Manual.
FILE_CHOOSER_SHOW_DOT_FILES
Specifies whether or not the FILE_CHOOSER package should consider files beginning with the “.” pre-
fix.
Argument: Bool
Default:
FALSE
Procs: create, get, set
Objects: File_chooser
See Also: Appendix D, Version 3.2 and the File Chooser, of XView Programming Manual ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Gestion des couleurs pas à pas

Gestion des couleurs pas à pas

Jean Delmas
1,000 Garment Graphics

1,000 Garment Graphics

Jeffrey Everett

Publisher Resources

ISBN: 9780937175880