Print Page | Close Window

How to disable the DialogBar combobox style inner

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=23111
Printed Date: 21 November 2024 at 10:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to disable the DialogBar combobox style inner
Posted By: supermip
Subject: How to disable the DialogBar combobox style inner
Date Posted: 31 August 2016 at 10:10am
Hello Everyone,

I hope you are doing well.

I have updated our application to CodeJock version 17.2.0 and I would like to know if there would be a way to disable the following effects when the mouse goes over or click on the caption:

I would like to disable these effects and just keep a standard caption style.

The several properties attached to the dialogbar control do not provide a direct way to disable it but maybe is there a hidden way to avoid this funny inner combobox.

The expected effect would be to always keep a clean caption style:

How could this be fixed ?  The spy window does not even recognize the inner combobox control.

Thank you very much in advance.



Replies:
Posted By: olebed
Date Posted: 05 October 2016 at 6:26am
Hello,

Thank you for bringing this to our attention
This depend on CXTPDialogBar::m_bCaptionPopup. But it is protected and don't have public setter.

So as hotfix you can change back code in 
Source\CommandBars\XTPDialogBar.cpp: ~277
CXTPDialogBar::CalcSize()
pCaption->m_bCaptionPopup = m_bCaptionPopup;

to
pCaption->m_bCaptionPopup = m_bCaptionPopup && (m_pPopupBar->GetControlCount() != 0);

We will solve this in next release.

Regards,
 Oleksandr Lebed


Posted By: astoyan
Date Posted: 19 October 2016 at 9:51pm
The issue has been fixed for version 17.3. No client code change required.

Regards,
  Alexander



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