![]() |
Ribbon Bar Tab Event Issue |
Post Reply ![]() |
Author | |
vijaymahajan ![]() Groupie ![]() ![]() Joined: 16 June 2008 Status: Offline Points: 92 |
![]() ![]() ![]() ![]() ![]() Posted: 27 August 2008 at 12:55am |
Hello,
Whenever we call SetCurSel() function of ribbon bar,the particular tab gets selected.
But the problem is the SetCurSel() function calls the TabEventHandler of ribbon bar.
I have 6 tabs on my ribbon bar. whenever user switches a tab,i ask him to save the document. On that message i have kept 3 buttons -Yes,No,Cancel. In first two cases of yes and no,its fine.But when user clicks the cancel button,it should come back to previous tab. This coming back to previous tab we can manage. For that i have called the SetCurSel() function.
It also works,But as the setcursel() function calls the tabs event handler,I cant maintain the state of controls in that tab.
Can we avoid the event handler call in this case to maintain the controls state in the tab?
Please guide me accordingly.
|
|
![]() |
|
vijaymahajan ![]() Groupie ![]() ![]() Joined: 16 June 2008 Status: Offline Points: 92 |
![]() ![]() ![]() ![]() ![]() |
Please suggest the possible answer for this.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
try catch TCN_SELCHANGING and return TRUE if you don't want change tab.
Copy some code from our sample.
|
|
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 |