Print Page | Close Window

Font and Size comparing 12.0.0 with 12.0.2

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11944
Printed Date: 28 February 2025 at 7:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Font and Size comparing 12.0.0 with 12.0.2
Posted By: jshan
Subject: Font and Size comparing 12.0.0 with 12.0.2
Date Posted: 24 August 2008 at 2:24am
Hi.
 
Yesterday, I installed XTP 12.0.2 and Got some differences within both resouces. I removed whole old xtp projects due to running outta disk spaces.
 
So it would be very appreciated if sombody tells me how to fix this UI problems.  Plz see below picture
 
Oops.   I did make a mistake on the capure.  "XTP 12.0.0" text in above image has to be actually "XTP 12.0.2" and "XTP 12.0.0" -> "XTP 12.0.2"
 
As you see, Font and its size are totally different even though the source codes are almost the same.
 
I didn't set any font and its size for the commandbars.
for pane titles,
 
    LOGFONT lf;
    XTPPaintManager()->GetRegularBoldFont()->GetLogFont(&lf);
    m_paneManager.GetPaintManager()->SetCaptionFontIndirect(&lf, FALSE);
were used for more clear font.
 
for skin,
XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors);
and
EnableOffice2007Frame(pCommandBars);
 
pCommandBars->SetTheme(xtpThemeRibbon);
for commandbar.
 
That's all.
 
It seems there are some chages for default values of resources for command bar.
 
How can i get it back like before ?
 
Regards
 
 
jshan.
 
 
====
 
 
Binary Sample means which I downloaded the binary exe file from your website for demo.
Compiled Sample means which I compiled with RibbonSample codes in my system.
 
As u see. Both are differnt, But it wans't at least XTP 12.0.0.
 
My system locale is Korean.
 
 


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC




Replies:
Posted By: jshan
Date Posted: 25 August 2008 at 1:28am

It seems the problems are coming from "RibbonTheme".

Any workaround ?


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC



Posted By: Oleg
Date Posted: 25 August 2008 at 1:45am
Hello,
 
Reason is SkinFramework. What Skin do you use ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jshan
Date Posted: 25 August 2008 at 5:42am
Thanks for the input.
 
I'm using vista.cjstyles with NORMALBLACK2.INI.
But, It was well working with 12.0.0.
 
========
 
I tested with skinframework disabled.
Result is the same.
 


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC



Posted By: jshan
Date Posted: 26 August 2008 at 1:27am
Plz answer me.
Every control that uses RibbonTheme shows strange font and size.
Same results are discovered in Dynamic Popup Menu. Command Bar controls. (Group control, Group tab ETC).
 
once,  I couldn't use XTP 12.0.1  due to broken combobutton in ReportControl.
Now XTP 12.0.2 has this kinda RibbonTheme related problem again.
 
 


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC



Posted By: Oleg
Date Posted: 26 August 2008 at 1:49am
Hi,
Can you attach screenshot how do you see our RibbonSample ?
What your default locale ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jshan
Date Posted: 26 August 2008 at 4:42am
Of course. I updated main article.


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC



Posted By: Oleg
Date Posted: 26 August 2008 at 6:55am
Hello,
There was one change with locale. Seems it become reason. Can you please open
XTPRibbonTheme.cpp file, and in CXTPRibbonTheme::UpdateFonts() replace
 
lf.lfCharSet = (BYTE)::GetTextCharsetInfo(dc, NULL, 0);
to
 
lf.lfCharSet = ncm.lfMenuFont.lfCharSet
 
and recompile.
 
If problem will be fixed can you let me know what value return
(BYTE)::GetTextCharsetInfo(dc, NULL, 0); and what ncm.lfMenuFont.lfCharSet
 
Thanks.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jshan
Date Posted: 26 August 2008 at 8:24am

Yes.

That fixed the problems.
 
::GetTextCharsetInfo(dc, NULL, 0) ->129
ncm.lfMenuFont.lfCharSet ->1
 
many thanks to Oleg. 
 


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC




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