ID:140406
 
Code:
mob
verb
tell(mob/m, msg as text)
winset(m,"tab1","tabs='+mypane'")
usr << output("You send [m] the message","output_chat")
m << output("<i><b>[usr.key]</b> tells you: [msg]</i>","output_chat")
winset(m,"output_chat","focus=true")


Problem description:
I want:
1) mypane, which contains output_chat, to appear in the tab1 control
2) For the newly appearing tab to take focus

The pane is appearing in the tab control, but the messagee's browser does not switch to the correct tab. I have tried focusing on mypane, the output_chat and other controls (such as buttons) also on mypane. It will not focus on the tab.

Am I doing something incorrectly, or is this simply not possible? Thank you!

To switch a tab, set the current-tab parameter of the tab control to the ID of the window pane you desire.
winset(m,"tab1","current-tab=mypane")
In response to ACWraith
Ah, missed that one; thank you! Will fix when I get home tonight.