# How to use Gtk::MessageDialog(new to Ruby-Gnome2)

**URL:** <https://www.ruby-forum.com/t/how-to-use-gtk-messagedialog-new-to-ruby-gnome2/55974>\
**Category:** Ruby-Gnome 2\
**Created:** [March 26, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/how-to-use-gtk-messagedialog-new-to-ruby-gnome2/55974 "2006-03-26T16:48:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Neo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ad7895/32.png) [@Victor\_Neo](https://www.ruby-forum.com/u/Victor_Neo)\
**Post date:** [March 26, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/how-to-use-gtk-messagedialog-new-to-ruby-gnome2/55974/1 "2006-03-26T16:48:14Z")

</div>

I am following the basic tutorials, and I find myself okay with them.

I am trying to add a MessageDialog when a user clicks on a button.

However, I have no idea how to use one despite using the API reference  
on  
it.

If possible, can someone tell me a simple way of implementing it, and  
how to  
use the API correctly.

Thanks.

---

<div class="post-metadata">

**Author:** ![Victor\_Neo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ad7895/32.png) [@Victor\_Neo](https://www.ruby-forum.com/u/Victor_Neo)\
**Post date:** [March 26, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/how-to-use-gtk-messagedialog-new-to-ruby-gnome2/55974/2 "2006-03-26T17:44:10Z")

</div>

Hi,

On Sun, 26 Mar 2006 22:46:55 +0800  
“Victor Neo” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am following the basic tutorials, and I find myself okay with them.
> 
> I am trying to add a MessageDialog when a user clicks on a button.
> 
> However, I have no idea how to use one despite using the API reference on  
> it.
> 
> If possible, can someone tell me a simple way of implementing it, and how to  
> use the API correctly.

How about a sample in ruby-gnome2-0.x.x/gtk/sample/gtk-demo/dialog.rb ?

–  
.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)
