Print Page | Close Window

How to allow gripping of the CXTPDialogBar title?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=19542
Printed Date: 24 September 2024 at 2:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to allow gripping of the CXTPDialogBar title?
Posted By: cuisinart
Subject: How to allow gripping of the CXTPDialogBar title?
Date Posted: 03 March 2012 at 11:47pm
I've submitted a support request via the official channel, but it's been two weeks now and no response.  So, opening it up:

Has anyone found a way to allow the title bar of a dialogbar to be gripped?  I have created a few dialogbars, but so far the only way to move them is by gripping the tiny gripper dots at the top, not the whole title bar, which intuitively doesn't make sense from a user interface perspective.


Any help appreciated!




Replies:
Posted By: cuisinart
Date Posted: 07 March 2012 at 3:16am
I have found a hack-ish way, hoping a better method comes along soon:

In XTPToolBar.cpp:
OnLButtonDown:
 change m_pControls->HitTest(point) test line to:
CXTPControl *pControl = m_pControls->HitTest(point);
if ( pControl == NULL || (m_pControls->GetCount() == 2 && pControl == m_pControls->GetAt(1)) )//CControlCaptionPopup)

then in the function OnSetCursor, under if (IsDialogBar()) change:
rcGripper.right = rcGripper.left + rcBorder.left + szGripper.cx;

to:

if ( ((CXTPDialogBar*)this)->m_bCaptionVisible)
rcGripper.right -= 20;
else
rcGripper.right = rcGripper.left + rcBorder.left + szGripper.cx;
(also include XTPDialogBar.h at the top)


Of course, the OnLButtonDown change only works if only DialogBars have two controls embedded.  This is true for my app but if yours has a toolbar with, say, 2 buttons only then it probably won't work right.



Posted By: SuperMario
Date Posted: 07 March 2012 at 1:37pm
what was the issue#?


Posted By: cuisinart
Date Posted: 07 March 2012 at 2:08pm
Hi, the submission I had in was 28048, it's on a different subject.  I had been waiting for that one to be resolved before adding others, like this.


Posted By: SuperMario
Date Posted: 07 March 2012 at 2:17pm
Originally posted by cuisinart cuisinart wrote:

Hi, the submission I had in was 28048, it's on a different subject.  I had been waiting for that one to be resolved before adding others, like this.

OK, please don't post misleading information.  On the other issue we need your app or sample to reproduce.

For THIS issue open a ticket and I'll attach the fix.


Posted By: cuisinart
Date Posted: 07 March 2012 at 2:28pm
Ok, thank you for your fast response.  The other issue I was waiting 2 weeks to get a reply before submitting this one, I didn't hear back until a phone call was placed yesterday, then they requested a sample which I am preparing.  

Regards



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