Print Page | Close Window

[solved] Japanese is not displayed

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23555
Printed Date: 23 December 2024 at 5:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] Japanese is not displayed
Posted By: hiro-ta
Subject: [solved] Japanese is not displayed
Date Posted: 30 January 2018 at 5:06am
Hi,

Japanese is not displayed in CXTPRibbonBackstageButton.
17.3.0 was fine. 18.2.0 is no good



[Development environment]
Windows10 Pro Japanese
VisualStudio2010 SP1
Toolkit Pro for Visual C++ 18.2.0

[source]
void CBackstagePageHelp::InitButton(UINT nID)
{
CXTPRibbonBackstageButton* pButton = (CXTPRibbonBackstageButton*)GetDlgItem(nID);
CXTPImageManagerIcon* pIcon = GetImageList()->GetImage(nID);
ASSERT(pIcon);
pButton->SetIcon(pIcon->GetExtent(), pIcon);
pIcon->InternalAddRef();
pButton->SetTextAlignment(BS_LEFT | BS_VCENTER);
pButton->SetImageAlignment(BS_LEFT | BS_VCENTER);
pButton->SetFlatStyle(TRUE);
pButton->ShowShadow(FALSE);

#if 1 // Optionally Format color and Margins with Markup

pButton->EnableMarkup(TRUE);
CString strWindowText;
pButton->GetWindowText(strWindowText);
CString strTitle, strDescription;
AfxExtractSubString(strTitle, strWindowText, 0);
AfxExtractSubString(strDescription, strWindowText, 1);
strWindowText.Format(_T("<StackPanel Margin='5, 3, 5, 3'><TextBlock>%s</TextBlock><TextBlock TextWrapping='Wrap' Foreground='#6f6f6f' Margin='0, 3, 0, 0'>%s</TextBlock></StackPanel>"), strTitle, strDescription);
pButton->SetWindowText(strWindowText);

#endif 
}






Replies:
Posted By: hiro-ta
Date Posted: 31 January 2018 at 9:12pm
I solved it with the following.

http://forum.codejock.com/forum_posts.asp?TID=23554&KW=japan&title=solved-hebrew-symbols-while-using-enablemarkup" rel="nofollow - http://forum.codejock.com/forum_posts.asp?TID=23554&KW=japan&title=solved-hebrew-symbols-while-using-enablemarkup



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net