wxToolTip and character set

Hello!

I have got a problem with tool tips.

All strings in my app are in the Windows-1250 charset
and are displayed correctly. Only in the tool tips
they are displayed incorrectly (as if in a different charset,
i guess isolatin-1).

Is there a way to set the font for the tool tips or a character set?
Or maybe some other way top make it display correctly?

Thank you.

Jirka Mikulasek

ps.: win2000, wxpython 2.3.3.1 (not sure about this, i am not at home
right now)

Jiri Mikulasek wrote:

Hello!

I have got a problem with tool tips.

All strings in my app are in the Windows-1250 charset
and are displayed correctly. Only in the tool tips
they are displayed incorrectly (as if in a different charset, i guess isolatin-1).

Is there a way to set the font for the tool tips or a character set?
Or maybe some other way top make it display correctly?

Please enter a bug report about this, with a wxMSW category.

···

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

Robin Dunn wrote:

Jiri Mikulasek wrote:

Hello!

I have got a problem with tool tips.

All strings in my app are in the Windows-1250 charset
and are displayed correctly. Only in the tool tips
they are displayed incorrectly (as if in a different charset, i guess isolatin-1).
Is there a way to set the font for the tool tips or a character set?
Or maybe some other way top make it display correctly?

Please enter a bug report about this, with a wxMSW category.

I would like to fix this in C++, any hints where to look?

Niki Spahiev

Niki Spahiev wrote:

Robin Dunn wrote:

Jiri Mikulasek wrote:

Hello!

I have got a problem with tool tips.

All strings in my app are in the Windows-1250 charset
and are displayed correctly. Only in the tool tips
they are displayed incorrectly (as if in a different charset, i guess isolatin-1).
Is there a way to set the font for the tool tips or a character set?
Or maybe some other way top make it display correctly?

Please enter a bug report about this, with a wxMSW category.

I would like to fix this in C++, any hints where to look?

My first guess is src/msw/window.cpp in wxWindowMSW::HandleTooltipNotify

···

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

Robin Dunn wrote:

My first guess is src/msw/window.cpp in wxWindowMSW::HandleTooltipNotify

Right on target!

Attached patch Works For Me(TM) on NT4 and Win98.
It forces wx to use current windows' ansi code page when making wide strings for tooltips.

Niki Spahiev

P.S. shoud this go to wxPython-dev also (instead)?

winttip.diff (1.57 KB)

Niki Spahiev wrote:

Robin Dunn wrote:

My first guess is src/msw/window.cpp in wxWindowMSW::HandleTooltipNotify

Right on target!

Attached patch Works For Me(TM) on NT4 and Win98.
It forces wx to use current windows' ansi code page when making wide strings for tooltips.

Great!

Niki Spahiev

P.S. shoud this go to wxPython-dev also (instead)?

Entering it into the Patch Manager in the wxWindows SF project would be the right thing to do.

···

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