# Gtk::Calendar

**URL:** <https://www.ruby-forum.com/t/gtk-calendar/175276>\
**Category:** Ruby-Gnome 2\
**Created:** [September 10, 2009, 2:12pm UTC](https://www.ruby-forum.com/t/gtk-calendar/175276 "2009-09-10T14:12:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [September 10, 2009, 2:12pm UTC](https://www.ruby-forum.com/t/gtk-calendar/175276/1 "2009-09-10T14:12:55Z")

</div>

[http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACalendar](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACalendar)

I am playing around with Gtk::Calendar right now, and I am wondering  
whether I can have a calendar where a user can scroll through the  
different months?

Right now I have a grayed out area when I try to click on the first day  
of the next month.

A sample can be found in rubygnome at gtk/sample/misc/calendar.rb  
I am trying a way to just use the Gtk::Calendar widget alone to switch  
to another month (like the next month)

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [September 12, 2009, 1:44am UTC](https://www.ruby-forum.com/t/gtk-calendar/175276/2 "2009-09-12T01:44:33Z")

</div>

> This option is obviously your problem.
> 
> ```
> Gtk::Calendar::NO_MONTH_CHANGE |
> 
> ```

Thanks - I didn’t consider looking at the options passed.

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [September 11, 2009, 11:43am UTC](https://www.ruby-forum.com/t/gtk-calendar/175276/3 "2009-09-11T11:43:57Z")

</div>

On Thu, Sep 10, 2009 at 2:12 PM, Marc H.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACalendar](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACalendar)
> 
> I am playing around with Gtk::Calendar right now, and I am wondering  
> whether I can have a calendar where a user can scroll through the  
> different months?
> 
> Right now I have a grayed out area when I try to click on the first day  
> of the next month.
> 
> A sample can be found in rubygnome at gtk/sample/misc/calendar.rb

This option is obviously your problem.

```
    Gtk::Calendar::NO_MONTH_CHANGE |

```

–  
Guillaume C. - [NVC Communication Obstacles Game](http://zarb.org/~gc/)
