Rb-Messagebox

:exclamation: For Windows MessageBox API Only supported currently. :exclamation:

Rb-Messagebox are show MessageBox dialog for Win32 API. (for Ruby)

Installation

$ gem install messagebox

or Write to the Your application Gemfile

gem 'messagebox'

and execute bundle command.

Usage

example of irb simple code.

$ irb
> require 'messagebox'
> MessageBox.show(
  "Example MessageBox",
  "This is test message.", 0x40)

as a result to That show MessageBox of

  • MessageBox title as a "Example MessageBox" (First Parameter)
  • MessageBox message as a "This is test message." (Second Parameter)

0x40 is MessageBox Style Code.

Please show MSDN Reference of MessageBox API Function. Parameter as a uType

currently URL are

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request