Print Page | Close Window

Pane title drawn incorrectly

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=4286
Printed Date: 22 May 2024 at 9:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pane title drawn incorrectly
Posted By: akur
Subject: Pane title drawn incorrectly
Date 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!



Replies:
Posted By: Oleg
Date 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


Posted By: akur
Date 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.




Posted By: akur
Date 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).


Posted By: Oleg
Date Posted: 01 June 2006 at 8:57am

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



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


Posted By: akur
Date 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.




Posted By: Oleg
Date 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


Posted By: akur
Date 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!



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