Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Font and Size comparing 12.0.0 with 12.0.2
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Font and Size comparing 12.0.0 with 12.0.2

 Post Reply Post Reply
Author
Message
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post Topic: Font and Size comparing 12.0.0 with 12.0.2
    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

Back to Top
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2008 at 1:45am
Hello,
 
Reason is SkinFramework. What Skin do you use ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.