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 » The tab text gets trimmed if it is in a language other than English Collapse All
Subject Author Date
MUKESH GUPTA Mar 10, 2011 - 3:43 AM

We were using ProfUIS version 2.54 and have recently upgraded to the latest version 2.91.I built all the static and dll targets of 2.91 on VS2008.


We have derived our class from CExtTabPageContainerOneNoteWnd & then have overridden OnCreate(LPCREATESTRUCT lpCreateStruct) which has been implemented as :-


int classname::OnCreate(LPCREATESTRUCT lpCreateStruct)

{


 if( CExtTabPageContainerOneNoteWnd::OnCreate(lpCreateStruct) == -1 )

  return -1;


 OrientationSet( __ETWS_ORIENT_LEFT );


 CCreateContext* pContext = NULL;


 if (lpCreateStruct != NULL)

  pContext = (CCreateContext*)lpCreateStruct->lpCreateParams;


 CString strTabname = "Tab One";


 if( ! m_view1->Create(NULL,_T(""),WS_CHILD | WS_VISIBLE,CRect(20,20,1,1), this,ID_VIEW1, pContext))

 {

  ASSERT( FALSE );

  return -1;

 }


 if( ! PageInsert(m_view1->GetSafeHwnd(),strTabname))

 {

  ASSERT( FALSE );

  return -1;

 }


 if( ! m_View2->Create(NULL,_T(""),WS_CHILD | WS_VISIBLE,CRect(30,30,1,1),this,ID_VIEW2, pContext))

 {

  ASSERT( FALSE );

  return -1;

 }


 strTabname  = "Tab Two";

 if( ! PageInsert(m_View2->GetSafeHwnd(),strTabname))

 {

  ASSERT( FALSE );

  return -1;

 }


}


Here, m_view1 & m_view2 are instances of classes derived from CView class.


The above code creates tab which are aligned vertically. The problem is that if the text to be displayed is in a language other than English, the text gets trimmed and "..." is displayed in the end.

For example, "Tab Two" is displayed like "Tab T...". Moreover, the problem occurs irrespective of tab alignment, i.e, it occurs even if the tabs are aligned horizontally.


Please suggest.


 

MUKESH GUPTA Oct 31, 2011 - 6:52 AM

Setting CExtRichContentLayout::g_bUseWin32ForPlainText to true during app initialization didn’t work for us.


 


 

MUKESH GUPTA Oct 20, 2011 - 2:21 AM

 

I still haven’t got any reply from the support. It seems like you are not keen on resolving this issue. As per your comments dated  "Jun 22, 2011 - 11:43 AM",


 


We fixed this rarely occurred text measurement issue in Prof-UIS 2.92.


The issue exists in 2.91 & I can find a lot of instances in the code where "…" is added to the string. If you think its not reproducible in 2.91, then whats the purpose of writing the code which adds "…" to the string. I don’t understand why you don’t remove this code which adds "…"



 

If you don’t want to fix this, then we shouldn’t spend money on getting the support from ProfUI which actually is not available & start looking for alternative UI.

Technical Support Oct 24, 2011 - 7:36 AM

Please let us know whether the issue disappears if you invoke the following line of code during your app initialization:

CExtRichContentLayout::g_bUseWin32ForPlainText = true;

MUKESH GUPTA Jun 30, 2011 - 5:53 AM

Setting CExtRichContentLayout::g_bUseWin32ForPlainText to true in app initialization is not working.


I would like to reiterate that the problem is not occuring for English language. I can see a lot of instances in the code where elipses are getting added to the text. We would like to EXCLUDE this logic for tabs. 


Since, our release is coming closer, it seems as if we might have to delay the release due to this critical issue which can affect our customers. In case, you are not able to reproduce the issue OR any inputs are required from our side, we can schedule a telephonic call or live meeting to discuss those in detail as we need to resolve this asap.


Moreover, I already have shared a sample app couple of months back to reproduce the issue. You can use the same to reproduce and fix the problem.

MUKESH GUPTA Jun 29, 2011 - 5:40 AM

Is someone looking into this?

MUKESH GUPTA Jun 28, 2011 - 2:01 AM

 We tried copying the files ExtRichContent.h and ExtRichContent.cpp from 2.92 to 2.91 & rebuild the project (both MBCS & MBCS-RDE) but it didn’t work.


Moreover, we also tried using using 2.92 dlls with our product but it was crashoing our application. Please suggest.

Technical Support Jun 29, 2011 - 12:15 PM

If you come across with any crashes or compilation problems, please provide us with the content of Output and Call Stack windows in your Visual Studio. We also would like to ask to to do one small experiment. Please invoke the CExtRichContentLayout::g_bUseWin32ForPlainText = false; line of code during your app initialization and let us know whether this fixes text on tab items?

Technical Support Jun 29, 2011 - 12:15 PM

Sorry, we mean CExtRichContentLayout::g_bUseWin32ForPlainText = true; line of code.

MUKESH GUPTA Jun 24, 2011 - 1:25 AM

I tried downloading the source code of 2.92 from the following link:-


http://www.prof-uis.com/download/mfc.aspx


Clicking on " Prof-UIS v.2.92 (36.00Mb) Source code and documentation " link didn’t work. Can you please suggest appropriate link from where we can download the source code of 2.92


 

Technical Support Jun 24, 2011 - 11:49 AM

We cannot confirm that the links are not active if you login using your username. The user PBBISAGENT should be able to download the software. Please try it again. In any case, please send a request to support@prof-uis.com to get our ftp address so you can always download any Prof-UIS version via ftp.

MUKESH GUPTA Jun 23, 2011 - 8:03 AM

We have recently moved to ProfUI 2.91 version and cannot upgrade to 2.92 as we are having a release scheduled & there is no time to test as well. Can you please provide us the fix asap so that we can incorporate that fix in our code & build the libraries.

Technical Support Jun 23, 2011 - 1:09 PM

2.92 is a minor release. If you don’t want to update, you can get only the ExtRichContent.h and ExtRichContent.cpp files from 2.92 and put it into 2.91

MUKESH GUPTA Jun 21, 2011 - 12:55 AM

Hi Support,


  This has been more than 2 months that there is not reply from Technical Support. I am not sure where is the technical support for the Prof UI? Is there any existance or not?


I am really very unhappy with the support and thinking of moving away from Prof UI by looking at the responses. There is no contact points, no email coming from support. I need answer to my queries ASAP.


 


Thanks


Pankaj

Technical Support Jun 22, 2011 - 11:43 AM

We fixed this rarely occurred text measurement issue in Prof-UIS 2.92.

MUKESH GUPTA Mar 16, 2011 - 1:11 AM

I have sent sample aplication which loads Japanese strings from a resource dll (Cannot share resource dll as it is project specific).  The Japanese string gets trimmed and ".." is appended at the end.  Also, please note that the bug is reproducible on a Japanese environment.

Technical Support Mar 16, 2011 - 1:35 PM

We received your e-mail and replied it.

Technical Support Mar 15, 2011 - 12:37 PM

Could you please send us this modified version of the TabbedBars sample application?

MUKESH GUPTA Mar 15, 2011 - 7:47 AM

I opened TabbedBars_900.vcproj using VS 2008 and did the following changes in CChildView::OnCreate() :-


1. Used CString::LoadString() to load Japanese text from a resource dll.

2. Passed that string to PageInsert()


Observed that for larger text, ".." was getting added to the tab text


Please suggest.


 

MUKESH GUPTA Mar 15, 2011 - 5:08 AM

Any updates on this? Will appreciate if you can provide the fix asap.

MUKESH GUPTA Mar 11, 2011 - 12:00 AM

If the tab text is in Japanese language, its getting trimmed and "..." are appended at the end. Please provide the fix asap.