Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Pb with fonts in Prof-UIS 2.60 release Collapse All
Subject Author Date
Christophe Guibert Sep 18, 2006 - 4:29 PM

Hello,

The new Luna Blue theme is impressive, but it seems there a little problem with fonts :
- they appear smaller than before in menus & dialogs,
- there’s some random "dirt" at the end of the drawing of strings (approximatively two chars wide). This "dirt" does not always appear and can be made of unwanted chars or black rectangles or squares.

I use the Luna Blue theme.
This was correct with the 2.54 version.

Do you have any idea ?

Best Regards,

Christophe Guibert

Luc Dion Sep 20, 2006 - 7:19 AM

Excellent, it fix the problem.
Thanks,
Luc Dion

Luc Dion Sep 19, 2006 - 11:15 AM

Our application is using "English (U.S.)" resources, with ProfUISDLL "Win32 Unicode Debug" configurations.

See screenshot: http://img213.imageshack.us/img213/2962/profuisbuffontshf2.jpg

John Kiernan Sep 19, 2006 - 11:00 AM

I am also using the Luna Blue theme...I don’t have "dirt’ BUT the fonts in 2.60 look "fuzzy" compared to how they looked in 2.54
And now when editing text inside grid cells there is no cursor. If I change to a different theme this is not a problem.

Regards,

John Kiernan

Technical Support Sep 19, 2006 - 8:54 AM

Would you send us a screenshot(s) demonstrating the problem?

Luc Dion Sep 19, 2006 - 7:26 AM

I’ve noticed the same "dirt" characters at the end of all labels using any of the available schemes. I’m using ProfUISDLL "Win32 Unicode" configurations.

Technical Support Sep 20, 2006 - 7:11 AM

Unfortunately we cannot reproduce this bug. But we can try to fix it. Please find the following code in the CExtLabel::WindowProc() method:

  else if( message == WM_GETTEXT )
  {
   TCHAR * lpszText = (TCHAR *)lParam;
   // 2.55
   // __EXT_MFC_STRCPY(
   //  lpszText, 
   //  wParam, 
   //  m_sText
   //  );
   ::memset( lpszText, 0, wParam );
   __EXT_MFC_STRNCPY(
    lpszText,
    wParam,
    m_sText,
    wParam - 1
    );
   lResult = TRUE;
  }
Add this line just after __EXT_MFC_STRNCPY and let us know if the bug is fixed:
lpszText[ wParam - 1 ] = _T(’\0’);


Technical Support Sep 19, 2006 - 9:39 AM

Please let us know which language strings produce bad characters? It would help us if you let us take a look at a screenshot that describes the problem.

Christophe Guibert Sep 19, 2006 - 1:46 PM

Please find two similar screenshots at :
http://chrguibert.free.fr/images-prof-UIS/english.png
and at :
http://chrguibert.free.fr/images-prof-UIS/french.png
http://chrguibert.free.fr/images-prof-UIS/russian.png

Strings are Unicode, this is language independent.
CStatic object is used. (Can not use CExtLabel there).

Best Regards,
Christophe Guibert

Christophe Guibert Sep 19, 2006 - 2:49 PM

Please find another screenshot, showing the same bug, and an additional one ("Days" seems to be hard coded in the CDurationCtrl object).
http://chrguibert.free.fr/images-prof-UIS/italian.png

Context : Luna Blue theme, using Unicode strings, and CExtLabel controls.

Best Regards,

Christophe Guibert

Technical Support Sep 20, 2006 - 8:06 AM

Thank you for your comment. We will localize this string in the next intermediate release. Of course, if you need this earlier, just send us the translation of the Days word in the needed languages.

Christophe Guibert Sep 20, 2006 - 1:22 PM

Hello,

Thank you for the "lpszText[ wParam - 1 ] = _T(’\0’);" patch, it fixes the problem for the CExtLabel, but not for CStatic objects (see http://chrguibert.free.fr/images-prof-UIS/english.png).

The problem seems to be deeper and seems to have a link with the new Office2007 themes.

However, I can live with the patch for CExtLabel which hides most of the encountered problems.

Thank you also for the future fix of hard coded "Days" word in CExtDurationWnd : I can wait for it.

Best Regards,

Christophe Guibert