How to get event that selected tab is change |
Post Reply |
Author | ||
hiro-ta
Groupie Joined: 11 July 2013 Status: Offline Points: 61 |
Post Options
Thanks(0)
Posted: 28 November 2016 at 1:13am |
|
Hi,
Please teach me how to get event that current ribbon tab is changed.
|
||
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
Hello,
See our RibbonSample Samples\Ribbon\RibbonSample\MainFrm.cpp
Code which handle these messages is
Regards, Oleksandr Lebed |
||
hiro-ta
Groupie Joined: 11 July 2013 Status: Offline Points: 61 |
Post Options
Thanks(0)
|
|
Thanks.
But not get the event that [File] tab is selected. Is there a way?
|
||
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
[File] is not ribbon's tab, it is "systemButton" which call BackStage.
I can't find how catch that event, but can offer to handle message of changing backstage tab, which also raised when backstage became visible.
|
||
hiro-ta
Groupie Joined: 11 July 2013 Status: Offline Points: 61 |
Post Options
Thanks(0)
|
|
Hi,
Thank you for your response. It works well. Problem solved.
|
||
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
I have tested and unfortunately found that CMainFrame::OnBackstageTabChanged() isn't raised when backstage have only commands, without tabs.
Take this into account.
|
||
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 |