Pradeep krishna wrote:
> Hi,
>
> May be the word "comment" confuse you its
better to say "Note".
>
> Suppose we want to leave a note for a cell entry how we
can?
>
> for example, I want to be add comment in cell B3 as
"BLUE, Rounded type".
>
>
> now how we differentiate a cell have a note (comment)
> in Excel way it is as follows:
> 1. right hand side corner contains small red
image.
> 2. when we hold the mouse over the cell which shows
the comment in
> tooltip
>
There isn't anything built-in like this, but it shouldn't be
too hard to
do it yourself. You need to use a custom cell renderer so
you can draw
the contents of the cells yourself, and include the note
indicator.
Then you'll also want to intercept the mouse events so you
can sense
when the mouse is being hovered over a cell, then you can
either change
the built-in tooltip's string, or show your own with
wx.TipWindow,
depending on how you want it to behave.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java
give you jitters? Relax with wxPython!
------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribe lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help lists.wxwidgets.org
|