![]() |
How to get event that selected tab is change |
Post Reply
|
| Author | ||
hiro-ta
Groupie
Joined: 11 July 2013 Status: Offline Points: 69 |
Post Options
Thanks(0)
Quote Reply
Topic: How to get event that selected tab is changePosted: 28 November 2016 at 1:13am |
|
|
Hi,
Please teach me how to get event that current ribbon tab is changed.
|
||
![]() |
||
olebed
Senior Member
Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 November 2016 at 8:49am |
|
|
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: 69 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2016 at 5:34am |
|
|
Thanks.
But not get the event that [File] tab is selected. Is there a way?
|
||
![]() |
||
olebed
Senior Member
Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2016 at 8:05am |
|
|
[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: 69 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2016 at 8:47pm |
|
|
Hi,
Thank you for your response. It works well. Problem solved.
|
||
![]() |
||
olebed
Senior Member
Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 December 2016 at 6:12am |
|
|
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 |