ask

Declaration

ask (text: STRING;yes_is_default: BOOLEAN): BOOLEAN

Description

Displays a small dialog box showing text above yes and no buttons. If yes_is_default is True, then the yes button is the default button (will be selected if user hits enter or return). The function returns True if the user presses 'yes'.

See Also

message
show_about
system functions

Example

script on_project_can_exit is
  project_can_exit := ask ('Are you sure you want to quit?', True)
end