Guide API
Skip to main content

FD_CLEAR_BUTTON

Constant FD_CLEAR_BUTTON 

Source
pub const FD_CLEAR_BUTTON: u16 = 0x0008;
Expand description

Insert a “Clear” button that closes the dialog without a filename.

Signals the caller (via Command::FILE_CLEAR) that the associated file should be cleared/unlinked. The dialog’s valid() always passes for this command (no path check), and FileDialog::value returns an empty string. Combine with FD_OPEN_BUTTON or FD_OK_BUTTON to offer both open and clear choices in the same dialog.

§Turbo Vision heritage

Ports fdClearButton (tfileinp.h).