Issue Details (XML | Word | Printable)

Key: RAD-14
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Latif Khalifa
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Radegast

Add Instance.TabConsole.SelectedTabChanged

Created: 02/Sep/09 05:23 PM   Updated: 03/Sep/09 08:43 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.8


 Description  « Hide
Needed for plugins to be able to manipulate the GUI

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Mojito Sorbet added a comment - 03/Sep/09 05:03 AM
There needs to be a way to identify what the select tab is for. Would this be just looking at the Name property? I can assume "inventory" is the inventory tab, "chat" is the chat tab, and so on. Anything I do not recognize will be an IM session, which I can look up by name.

Or is there a better way to tell which is which, get the associated IM SessionID, etc? Perhaps by digging down into the Tab contents.

Are Tab names case-sensitive? This probably applies more to the SelectTab(string) method.

Does calling SelectTab raise this event?


Latif Khalifa added a comment - 03/Sep/09 08:43 PM
Added 3 new events to TabConsole in r187

OnTabSelected
OnTabAdded
OnTabRemoved

They will pass tab affected by the operation as e.Teb

Tab.Name cannot be relied upon to find the type of the tab, since there can be multiple tabs of the same type, such as IM tab. Tab.Label is the title used for the tab on the button.

Probably the best way to figure out the type of the tab is to check the type of the Tab.Control.

fx.

if (e.Tab.Control is IMTabWindow) ...