module WindowsUIHelpers

Constants

APP_TITLE
BUTTONS_ABORTRETRYIGNORE
BUTTONS_OK

:nocov: button constants

BUTTONS_OKCANCEL
BUTTONS_YESNO
CLICKED_ABORT
CLICKED_CANCEL
CLICKED_IGNORE
CLICKED_NO
CLICKED_OK

return code constants

CLICKED_RETRY
CLICKED_YES

Public Instance Methods

message_box(txt, title, buttons) click to toggle source
# File lib/SimpliTest/helpers/windows_ui.rb, line 19
def message_box(txt, title, buttons)   
  MessageBox::MessageBoxA nil, txt, title, buttons
end
user_consents_via_prompt?(question) click to toggle source
# File lib/SimpliTest/helpers/windows_ui.rb, line 23
def user_consents_via_prompt?(question)
  message_box(question, APP_TITLE, BUTTONS_YESNO) == CLICKED_YES
end
user_informed_via_prompt?(message) click to toggle source
# File lib/SimpliTest/helpers/windows_ui.rb, line 27
def user_informed_via_prompt?(message)
  message_box(message, APP_TITLE, BUTTONS_OK) == CLICKED_OK
end