Guide API
Skip to main content

FD_HELP_BUTTON

Constant FD_HELP_BUTTON 

Source
pub const FD_HELP_BUTTON: u16 = 0x0010;
Expand description

Insert a “Help” button (posts Command::HELP; does not close the dialog).

The help button is never the default and never triggers path validation. May be OR-ed with any other button flag.

While the dialog runs modally, Command::HELP reaches only the dialog, which ignores it, and is then dropped: a program-level command handler (for example run_app’s) never sees it. To show help, embed the dialog in your own view type (#[delegate(to = dialog)]) and handle Command::HELP in that view’s handle_event.

§Turbo Vision heritage

Ports fdHelpButton (tfileinp.h).