![]() |
On Menu Visible? |
Post Reply
|
| Author | |
robosport
Groupie
Joined: 20 June 2005 Location: United States Status: Offline Points: 62 |
Post Options
Thanks(0)
Quote Reply
Topic: On Menu Visible?Posted: 02 March 2008 at 8:24pm |
|
What is the best way to find out from the client program when a popup menu on an XTPCommandBar becomes visible/active, and again when it becomes hidden? (i.e. when the user clicks on a menu to make it visible, and when the user clicks an item or clicks away to make the menu hidden)
I need to stop rendering something in the background when the menu is covering part of it.
Thanks.
|
|
![]() |
|
robosport
Groupie
Joined: 20 June 2005 Location: United States Status: Offline Points: 62 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 March 2008 at 9:22pm |
|
BTW... I'm using GetClipBox from the window in the background to determine if it is partially or completely obscured (by a menu or anything else) during my painting.
I'm just checking to see if there is a better way.
Thanks! |
|
![]() |
|
robosport
Groupie
Joined: 20 June 2005 Location: United States Status: Offline Points: 62 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 March 2008 at 9:46pm |
|
The only problem with that technique (GetClipBox) is that it leaves menus painted on the background even when another sub menu might be selected.
So I'm back to asking if there is a way to know when a menu or submenu has become visible or hidden.
Thank you.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 March 2008 at 10:22am |
|
Hi,
You can override CXTPCommandBars::OnTrackingModeChanged method and change if GetMouseManager()->IsTrackedLock() is TRUE.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |