Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Pane title drawn incorrectly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pane title drawn incorrectly

 Post Reply Post Reply
Author
Message
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Topic: Pane title drawn incorrectly
    Posted: 26 May 2006 at 5:05am
When a pane is docked to the left or to the right, and autohide mode is turned on for it, then the pane's title is displayed incorrectly. Actually, the title text is not drawn vertically as it should be, but horizontally - so that only a part of the first letter is visible from the title text. This happens only on one of our computers.
Is this a known bug in Xtreme Toolkit Pro 10.1?
Is there any workaround to avoid this unwanted effect?

Thanks a lot, in advance!
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 May 2006 at 9:47am

Hello,

Can you attach screenshot what you see?

What OS have this computer?

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Posted: 26 May 2006 at 10:01am
It's a WinXP Pro with SP2. Screenshot attached - CodeJock sample named PaneSample. Look at the autohidden pane docked to the left.


Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2006 at 5:33am
Hello,

maybe it's important to say that other software have no problem with drawing vertical texts (e.g. Visual Studio is also installed on that computer and its autohidden panes are absolutely OK).
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: 01 June 2006 at 8:57am

Hmm. :( If you dock MenuBar vertically do you see same problem?

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2006 at 9:15am
Yes, it's the same problem. Here are the screenshots: menus docked to the left and docked to the right.


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: 01 June 2006 at 12:37pm

Weird... may be some problems with installed Arial font on this computer.  Can you copy Arial font from other computer to c:\WINDOWS\Fonts ?

 

Can you debug thru

CString AFX_CDECL CXTPDrawHelpers::GetVerticalFontName(BOOL bUseOfficeFont) method (XTPDrawHelpers.cpp)

and check what font it returns?

 

Thanks.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Posted: 02 June 2006 at 4:00am
Hello,

Arial font is exactly the same as on other machines, and GetVerticalFontName() returns "MS Shell Dlg", just like on all other machines. There's no difference in these.
However, we've gone a bit further and found this: on the problematic computer, the "MS Shell Dlg" font is substituted in registry with MS Sans Serif (a raster font), but on all other machines it's substituted with Microsoft Sans Serif (a TrueType font). When we manually changed the substitution in the registry, the problem was solved at once. Pane titles and menubar are both correctly drawn now. It's a mistery why this single computer had such an unusual setting.

Thanks for your guidance in solving this problem!
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.125 seconds.