short static text + mouse click (over) = Long text?

Hello All,

I have a window the displays a lot of file names and I would like to avoid displaying the full path in the text and provide a way for the user to click on the text (or mouse over it) and have a little display pop up with the full path. I have looked around my book and the net but nothing has popped out. wx.HyperlinkCtrl seems like a possibility but I wasn’t sure if there was already a way people on this list accomplish such a task.

Any guidance is appreciated.

Kind Regards,

Steve

If your filenames are listed in a wxListCtrl, the name will be cut off
at the width of that column in the textCtrl but I think mousing over
it will automatically pop up a tool tip with the full text.

Or if you're staying with a staticText, you could just set a wxToolTip
on it to pop up the full filename with mouseover.

Che

···

On Mon, Aug 16, 2010 at 4:30 PM, Steve <ghostraker@gmail.com> wrote:

Hello All,
I have a window the displays a lot of file names and I would like to avoid
displaying the full path in the text and provide a way for the user to click
on the text (or mouse over it) and have a little display pop up with the
full path.

Try SetToolTipString

http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindowsettooltip

Someone may want to update the documentation to note the wxPython
SetToolTipString usage.

Mark

···

On Aug 17, 4:30 am, Steve <ghostra...@gmail.com> wrote:

Hello All,

I have a window the displays a lot of file names and I would like to avoid
displaying the full path in the text and provide a way for the user to click
on the text (or mouse over it) and have a little display pop up with the
full path. I have looked around my book and the net but nothing has popped
out. wx.HyperlinkCtrl seems like a possibility but I wasn't sure if there
was already a way people on this list accomplish such a task.

Any guidance is appreciated.

Kind Regards,

Steve

Hi Mark,

Mark wrote:

Try SetToolTipString

http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindowsettooltip

Someone may want to update the documentation to note the wxPython
SetToolTipString usage.

Mark

Hello All,

I have a window the displays a lot of file names and I would like to avoid
displaying the full path in the text and provide a way for the user to click
on the text (or mouse over it) and have a little display pop up with the
full path. I have looked around my book and the net but nothing has popped
out. wx.HyperlinkCtrl seems like a possibility but I wasn't sure if there
was already a way people on this list accomplish such a task.

Any guidance is appreciated.

Kind Regards,

Steve
    

You're looking at the wrong docs,
http://www.wxpython.org/docs/api/wx.Window-class.html#SetToolTipString

···

On Aug 17, 4:30 am, Steve <ghostra...@gmail.com> wrote:

--
Steven Sproat, BSc

Thanks! This is exactly what I was looking for.

Cheers,

Steve

···

On Mon, Aug 16, 2010 at 2:36 PM, Steven Sproat sproaty@gmail.com wrote:

Hi Mark,

Mark wrote:

Try SetToolTipString

http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindowsettooltip

Someone may want to update the documentation to note the wxPython

SetToolTipString usage.

Mark

On Aug 17, 4:30 am, Steve ghostra...@gmail.com wrote:

Hello All,

I have a window the displays a lot of file names and I would like to avoid

displaying the full path in the text and provide a way for the user to click

on the text (or mouse over it) and have a little display pop up with the

full path. I have looked around my book and the net but nothing has popped

out. wx.HyperlinkCtrl seems like a possibility but I wasn’t sure if there

was already a way people on this list accomplish such a task.

Any guidance is appreciated.

Kind Regards,

Steve

You’re looking at the wrong docs,

http://www.wxpython.org/docs/api/wx.Window-class.html#SetToolTipString

Steven Sproat, BSc

http://whyteboard.org/

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en