Print Page | Close Window

RButtonDown Derived Class Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7120
Printed Date: 17 July 2025 at 9:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: RButtonDown Derived Class Problem
Posted By: terrym
Subject: RButtonDown Derived Class Problem
Date Posted: 13 May 2007 at 8:00am
We have a derived class of CXTPControlGallery and are overiding OnLButtonDblClk without problems however when we try to override RButtonDown it does not work for this ???
 
Can you please let us know why this is.
 
Thanks for any help
Terry
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: Oleg
Date Posted: 14 May 2007 at 1:27am
https://forum.codejock.com/forum_posts.asp?TID=6994&KW=RButtonDown -
 
https://forum.codejock.com/forum_posts.asp?TID=6994&KW=RButtonDown


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


Posted By: terrym
Date Posted: 14 May 2007 at 6:20am
Ok cool, however how would I apply the 3 current context menu items to my new menu, any help appreciated.
 
Thanks for any help
Terry
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 14 May 2007 at 7:45am
You can call
CXTPPopupBar* pRibbonbar->CreateContextMenu(CXTPControl* pSelectedControl)
to create default menu for control.


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


Posted By: terrym
Date Posted: 14 May 2007 at 7:56am
thanks for this reply, however is there a way to append the 3 options to my own popup menu control, and also is there a TrackPopupMenu function which uses the new office styles that I can use instead of MFC equivalent.
 
Thanks


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: terrym
Date Posted: 14 May 2007 at 9:18am
We have tried the OnRButtonDown as you state in the other thread and it still does not work, it never gets to our function ???
 
Any help appreciated
 
Thanks
Terry
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 15 May 2007 at 1:14am
Hi,
Did you patch X|PRibbonBar.cpp file as suggested in thread?


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


Posted By: terrym
Date Posted: 15 May 2007 at 4:11am
Hi
 
I sure did, and also to make sure I built the project correctly I added an AfxMessageBox() to make sure it was being called, but for some reason the OnRButtonDown always returns FALSE so therefore continues with rest of code execution.
 
Look forward to solution
 
Thanks
Terry


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 16 May 2007 at 5:49am
???
yes, by default it returns FALSE but you have to override it and return TRUE.


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


Posted By: terrym
Date Posted: 16 May 2007 at 5:59am
I did override and return TRUE, however just to make sure please let me know which class I should override, as right now I have tried CXTPControlGallery and CXTPRibbonBar
 
Thanks


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: terrym
Date Posted: 16 May 2007 at 9:55am
I did override and return TRUE, however just to make sure please let me know which class I should override, as right now I have tried CXTPControlGallery and CXTPRibbonBar
 
Also I have tried to call pRibbonBar->CreateContextMenu() but this function is private :( so I cant call this from my code.
 
Look forward to a reply, we have a years maintenance/help with you so not sure if you need our order number.
 
Thanks


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



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