Name

Popup::AnyQuestion — Generic question popup with two buttons.

Synopsis

Import Popup;
boolean Popup::AnyQuestion ( string  headline ,
  string  message ,
  string  yes_button_message ,
  string  no_button_message ,
  symbol  focus );

Parameters

string headline

headline or Popup::NoHeadline()

string message

message string

string yes_button_message

label on affirmative buttons (on left side)

string no_button_message

label on negating button (on right side)

symbol focus

`focus_yes (first button) or `focus_no (second button)

Return Value

boolean

true: first button has been clicked false: second button has been clicked

Description

Style guide hint: The first button has to have the semantics of "yes", "OK", "continue" etc., the second its opposite ("no", "cancel", ...). NEVER use this generic question popup to simply exchange the order of yes/no, continue/cancel or ok/cancel buttons!

Examples

  Popup::AnyQuestion( Label::WarningMsg(), "Do really want to ...?", "Install", "Don't do it", `focus_no );

Screenshot

See