Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » version 2.70 CExtControlBar bad drawing of the name Collapse All
Subject Author Date
Thierry Boone May 21, 2007 - 7:44 AM

I just installed the 2.7 release of ProfUI. I have 2 CExtControlBar that are docked and in autohide. The name of the second CExtControlBar is badly displayed on the screen, it overlaps the other one or goes out of its tabs

Technical Support May 21, 2007 - 9:30 AM

Would you provide additional details about the problem?

1) Can this problem be reproduced with our samples?
2) Which paint manager should be used?
3) Which Windows version you are using? Do we need to set some specific desktop DPI settings?

Thierry Boone May 21, 2007 - 10:19 AM

I reproduced this with SDI_DynamicBar.

1) Dock the SimpleBar at the same location with a DynamicBar so that they are tabbed together (left or right side) and set it to autohide. -> the issue may be linked to the fact that there is no icon associated with the SimpleBar as in my project.

2) on your sample this happens with Native Windows XP theme, Office2003 with / without color theme.

3) Win version is XP SP2

Technical Support May 21, 2007 - 12:19 PM

This occurs only when the grouped tabs are using the Visual Studio .NET layout (not Visual Studio 2005 layout) and there is no icon assigned to the resizable control bar’s activation command. We agree the text should not be painted at all in this case, but we have no idea about what should be displayed instead of the icon? We think this issue should be fixed locally in the sample applications and in your project(s). I.e. an icon should be assigned to the control bar’s command.

Thierry Boone May 22, 2007 - 1:56 AM

I understand there is no plan to fix. But have a look at the behaviour of the grouped tabs when docked on top or on bottom. It displays the text, which is the right behaviour.

Technical Support May 22, 2007 - 9:45 AM

The horizontal text is drawn with DrawText() API which allows you to draw the ellipsis effect. Unfortunately this API does not allow you to draw it in the vertical direction. So the vertical text is drawn using ExtTextOut() API. We think the auto hide tabs are drawn incorrectly in both cases if the icon is not specified. The better solution is to invoke the following code at startup before any resizable control bars is created:

CExtControlBar::g_eAutoHideTabsType = CExtControlBar::__AUTOHIDE_TABS_TYPE_STUDIO_2005;
This will allow you to use resizable control bar commands without icon assigned to the resizable control bar activation command.