[ wxwindows-Bugs-1614522 ] tooltip no longer shown in rectangular window

SourceForge.net noreply at sourceforge.net
Tue Dec 12 21:54:43 PST 2006


Bugs item #1614522, was opened at 2006-12-13 05:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1614522&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: greenlantern (jccfifkf)
Assigned to: Nobody/Anonymous (nobody)
Summary: tooltip no longer shown in rectangular window

Initial Comment:
I was told by the wxpython user group to submit this as
a bug.  Enclosed below is the user group posting and
the response from Robin Dunn.
=============================================

jeremy alexander wrote:
>  Hi,
> 
>  I just upgraded from wxpython 2.6.3.2 to 2.7.2.0
>  (Using Windows XP, Python 2.4.3)
> 
>  The only problem I've found so far is that tooltips
>  are now are displayed on 1 line instead of within a
>  small rectangle as before. 
>  This can be seen in the demo program under Core
>  Windows/Control -> Buttons.  Leave the mouse over the
>  'Flat Button' to see the tooltip.  Or first modify the
>  demo by making the tooltip really long and then look
>  at the resulting display.
> 
>  Is there any work-around (inserting \n characters in
>  the tooltip text does not help). 

I don't remember the details of the change, but it was something like
switching to a new API for displaying the tooltip (in order to support
longer texts) deactivated the automatic max-width settings. There is
code in place however to take a look at the length of the lines in the
text and to set the max width of the tool tip to match.  If that's not
working then it's a bug.

>  Would this problem be fixed in the next wxPython
>  release?

I don't think there has been any changes in this code for quite some
time.  Please enter a bug report about it with a category of "wxMSW
Specific"

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!
============================================

Since the posting, I've tried wxpython 2.8.0.1 and seen the same problem:
- in the wxpython demo (2.8.0.1) I changed the tooltip for the 'Flat' button of the Core
>  Windows/Control -> Buttons to be really long.  I then inserted a '\n' character.  The result was that   the tooltip line was split at the newline character but the rest of the tooltip was displayed on one line.

For some reason, in my application, inserting a \n character does nothing; the entire tooltip still shows up on one line.

Thanks,

Jeremy.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1614522&group_id=9863




More information about the wx-dev mailing list