NTabControl close button event


Author
Message
Craig Swearingen
Craig Swearingen
Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)
Group: Forum Members
Posts: 99, Visits: 654

On my NTabControl I've specified

hasClose = true and showCloseOnEachTab = true

I also have registered to receive a ClosingTab event.

How can I code the ClosingTab event to determine which tab is being closed?

Setting the Cancel parameter to true does stop the closing of the tab but its not clear how to know which tab it is.  I'm on the 11.12.14.12 build.


Reply
Craig Swearingen
Craig Swearingen
Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)
Group: Forum Members
Posts: 99, Visits: 654

Thanks again for trying to help.  The SelectedTab holds the tab that is currently selected (on top).  Since you can close any tab even when its not on top it can't be used for this.

Any other ideas? 

Seems like an NTabControl design fix is needed.  The tab page index should be added to the event or the event should be called on the NTabPage instead of the NTabControl.  Nevron Support, can you add this to a future build?


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search