RButtonDown Derived Class Problem |
Post Reply |
Author | |
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You can call
CXTPPopupBar* pRibbonbar->CreateContextMenu(CXTPControl* pSelectedControl)
to create default menu for control. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Did you patch X|PRibbonBar.cpp file as suggested in thread?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
???
yes, by default it returns FALSE but you have to override it and return TRUE.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |