![]() |
Font and Size comparing 12.0.0 with 12.0.2 |
Post Reply ![]() |
Author | |
jshan ![]() Groupie ![]() ![]() Joined: 07 December 2007 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
jshan ![]() Groupie ![]() ![]() Joined: 07 December 2007 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Reason is SkinFramework. What Skin do you use ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jshan ![]() Groupie ![]() ![]() Joined: 07 December 2007 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
jshan ![]() Groupie ![]() ![]() Joined: 07 December 2007 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Can you attach screenshot how do you see our RibbonSample ?
What your default locale ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jshan ![]() Groupie ![]() ![]() Joined: 07 December 2007 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
Of course. I updated main article.
|
|
: xtp 16.2.0(Unicode static lib)
: windows 7 Pro Kor sp1(64bit) : vs 2012 update 2 MFC |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
jshan ![]() Groupie ![]() ![]() Joined: 07 December 2007 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
Yes. That fixed the problems.
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |