CXTPDockingPane activation notification? |
Post Reply |
Author | |
brianh
Groupie Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
Post Options
Thanks(0)
Posted: 30 April 2004 at 8:47am |
Hi, I am currently evaluating Xtreme Toolkit Pro to see if it is suitable for our company. I have a view which I have placed in a CXTPFrameWnd (so it can have a toolbar, ala the Advanced demo) and then attached the frame to a CXTPDockingPane. When I click on the view it's OnActivateView() gets called correctly and the pane title highlights to indicate it is active. If I click in the pane title of an inactive pane, it highlights correctly but OnActivateView() does not get called for the child view. Furthermore, when a pane/view is active and you click on a different pane, OnActivateView() does not get called to notify it of de-activation either, so basically you only get notified of activation if you click in the view and you never get notified of de-activation! These problems also occur for views that are attached directly to the pane via AttachView(). My original problem was that I wanted to change the menu when certain panes were active, I have an MDI application and within each child frame I have several panes, some of which need toolbars and preferably their own menu. I intended to swap the menu when the view (or preferably it's parent frame) was activated and swap it back when de-activated. Can this be done and if so how? In any case I'm sure some of my views will need to know when their parent pane is activated/de-activated, is this possible? Edited by brianh |
|
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 |