Print Page | Close Window

Vista/Win7 bug in quickaccess bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=17085
Printed Date: 30 April 2024 at 8:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Vista/Win7 bug in quickaccess bar
Posted By: Michl
Subject: Vista/Win7 bug in quickaccess bar
Date Posted: 09 August 2010 at 7:53am
Hello
 
we have a fixed 'quickaccess' control with caption '#:' in our software.
RibbonBar always draws his bar correctly until our software is installed on a vista or win7 machines.
 
 
 
I found the problem is in

CSize CXTPRibbonTheme::DrawControlComboBox(CDC* pDC, CXTPControlComboBox* pControlCombo, BOOL bDraw)
 
The function FillCompositeAlpha inverts (?) (blue font on black background) the text after it has drawn (correctly!)...
I read in code comments this function do nothing when no aero is found.
 

   if (pControlCombo->HasDwmCompositedRect())
   {
      FillCompositeAlpha(pDC, pControlCombo->GetRect());
   }
   return 0;
}
 
 
Can anybody help me, please!?
 
(our software looks not very nice with a black box)



Replies:
Posted By: Michl
Date Posted: 11 August 2010 at 2:56am
It can easyly reproduceable with samples from codejock!
Can anybody confirm this problem?
Solution?


Posted By: Oleg
Date Posted: 11 August 2010 at 3:35am
Right - ComboBox should not have label when you place it to Quick Access. Actually in code we change style to remove it - so seems you manually set it back.

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


Posted By: Michl
Date Posted: 11 August 2010 at 4:22am
Thanks for your replay.

My Combobox is derived from your class and I added following code to constructor

    SetDropDownListStyle( TRUE );
    SetWidth( 200 );
    SetStyle( xtpButtonCaption );
    .
    .
    .


So, when codejock adds a clone object to quickaccess the caption style will be changed. You're right.
But with intend!

I found it is a nice feature to add a description about the input box. Especially when you can add more input boxes.
Logical I see no reason why this is forbidden. Technical reasion to change it??



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