hi ! All
I try to solve this issue from last 1 days and finally i get the solutions.
From file ChatUI_IM.xml right now following code is written at line 1185.
<HtmlPanel AutoDock="Fill">
<InstantIMTabControl AutoDock="Fill" DockMargins="2,4,2,4">
<IMTabPage TabName="Contacts">
<MessengerAds AutoDock="Bottom" Height="60" DockMargins="4,4,4,4"></MessengerAds>
<InstantContactList AutoDock="Fill" DockMargins="4,4,4,4">
<MyInfoMenuClass _property="ContextMenu" />
</InstantContactList>
</IMTabPage>
</InstantIMTabControl>
<HtmlImage Src="%CuteChatUrlBase%Images/Close.gif" Width="15" Height="15" PositionAnchor="TopRight" Top="6" Right="5" BackColor="transparent" BorderStyle="none">
<Scripts>
<OnClick Arguments="htmlEvent">
var tabc=this.GetParent().FindChildByType("InstantIMTabControl")
var page=tabc.GetActiveTabPage()
if(page.ConvertAs("ContactTabPage"))
{
tabc.RecyclePage(page);
}
</OnClick>
</Scripts>
</HtmlImage>
</HtmlPanel>
I just replace "close" image html control location. New code is as blow.
<HtmlPanel AutoDock="Fill">
<InstantIMTabControl AutoDock="Fill" DockMargins="2,4,2,4">
<IMTabPage TabName="Contacts">
<MessengerAds AutoDock="Bottom" Height="60" DockMargins="4,4,4,4"></MessengerAds>
<InstantContactList AutoDock="Fill" DockMargins="4,4,4,4">
<MyInfoMenuClass _property="ContextMenu" />
</InstantContactList>
</IMTabPage>
<!---Add close image inside InstantIMTabControl control-->
<HtmlImage Src="%CuteChatUrlBase%Images/Close.gif" Width="15" Height="15" PositionAnchor="TopRight" Top="6" Right="5" BackColor="transparent" BorderStyle="none">
<Scripts>
<OnClick Arguments="htmlEvent">
var tabc=this.GetParent().FindChildByType("InstantIMTabControl")
var page=tabc.GetActiveTabPage()
if(page.ConvertAs("ContactTabPage"))
{
tabc.RecyclePage(page);
}
</OnClick>
</Scripts>
</HtmlImage>
</InstantIMTabControl>
</HtmlPanel>
now close button is work for me fine.
Regards
gbpatel