# Some question, calendar and notification

**URL:** <https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361>\
**Category:** wxRuby\
**Created:** [April 22, 2010, 5:52am UTC](https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361 "2010-04-22T05:52:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 22, 2010, 5:52am UTC](https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361/1 "2010-04-22T05:52:04Z")

</div>

Dear All,  
I have some question regarding on wxwidget

Is there a way to add tooltip into a date in calendarctrl?

Is there a build in way to do notification like notification in ubuntu  
or in  
thunderbird?

Regards,  
Hendra

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 22, 2010, 6:06am UTC](https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361/2 "2010-04-22T06:06:08Z")

</div>

On Thu, Apr 22, 2010 at 10:51 AM, hendra kusuma  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Dear All,  
> I have some question regarding on wxwidget
> 
> Is there a way to add tooltip into a date in calendarctrl?
> 
> Is there a build in way to do notification like notification in ubuntu or  
> in thunderbird?

More question

Is there a way to make window shows on desktop always on bottom  
and never be minimized even when we click show desktop icon?

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 28, 2010, 11:58am UTC](https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361/3 "2010-04-28T11:58:42Z")

</div>

On 22/04/2010 04:51, hendra kusuma wrote:

> Is there a way to add tooltip into a date in calendarctrl?

Try something like:

1. Use evt\_motion to track where the mouse is within the CalendarCtrl
2. CalendarCtrl#hit\_test to work out what date is being covered
3. then Window#tooltip= / set\_tooltip to set the appropriate text to  
show on hover.

I haven’t done this for CalendarCtrl but it works well with  
StyledTextCtrl.

> Is there a build in way to do notification like notification in ubuntu  
> or in thunderbird?  
> [http://www.rhinocerus.net/forum/lang-ruby/66940-wx-ruby-notify-window.html](http://www.rhinocerus.net/forum/lang-ruby/66940-wx-ruby-notify-window.html)

Not in core wxWidgets 2.8 - I’ve seen it discussed. Those kind of  
notifications aren’t part of the core UI in OS X (and maybe GNOME) -  
applications that have them rely on add-on frameworks eg Growl. You  
might use another package eg:

[http://segment7.net/projects/ruby/growl/](http://segment7.net/projects/ruby/growl/)  
[http://growl.info/documentation/developer/ruby-support.php](http://growl.info/documentation/developer/ruby-support.php)

a

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 29, 2010, 5:33am UTC](https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361/4 "2010-04-29T05:33:38Z")

</div>

On Wed, Apr 28, 2010 at 4:58 PM, Alex F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> on hover.  
> applications that have them rely on add-on frameworks eg Growl. You might  
> use another package eg:
> 
> [http://segment7.net/projects/ruby/growl/](http://segment7.net/projects/ruby/growl/)  
> [http://growl.info/documentation/developer/ruby-support.php](http://growl.info/documentation/developer/ruby-support.php)

Well, I found notify

> **[notify | RubyGems.org | your community gem host](https://rubygems.org/gems/notify)**

It does what I need about notification, at least on Ubuntu  
(the author said it is cross platform, but I have not tried it)

Also about hit\_test, I don’t know how to use it

_hit\_test_(Point \<file:///home/hendra/ruby/wxruby-doc/html/point.html\>  
pos,  
DateTime  
\<file:///home/hendra/ruby/wxruby-doc/html/datetime.html\> date = nil,

```
                             DateTime::WeekDay wd = nil)

```

I assume point is get from  
Point.new(event.get\_x, event.get\_y)  
But what about date?  
I put Time.now there and it gives me error?  
How should I use this?

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 30, 2010, 4:09am UTC](https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361/5 "2010-04-30T04:09:26Z")

</div>

On Fri, Apr 30, 2010 at 3:52 AM, Alex F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > ```
> > DateTime::WeekDay wd = nil)|
> > 
> > ```
> 
> class & method. Could you report it as a bug please and I’ll fix for next  
> release.
> 
> thanks  
> alex

Ok, I already submit this to bug tracker  
Hope to see it coming

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [April 29, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/some-question-calendar-and-notification/187361/6 "2010-04-29T22:55:42Z")

</div>

On 29/04/2010 04:30, hendra kusuma wrote:

> I put Time.now there and it gives me error?  
> This method should have a mapping so that it accepts a single Point  
> argument and returns a DateTime object. This is how similar methods work  
> in other classes, but I’m afraid I think the mapping has been missed for  
> this class & method. Could you report it as a bug please and I’ll fix  
> for next release.

thanks  
alex
