This is a migrated thread and some comments may be shown as answers.

Fiddler Documentation Page

1 Answer 102 Views
Extensions and Customization
This is a migrated thread and some comments may be shown as answers.
Jhayar
Top achievements
Rank 1
Jhayar asked on 25 Apr 2014, 03:01 AM
Hi Erik,

I just checked the documentation page about on how to customize the tab icon and it seems not to be not right: See screenshot: http://screencast.com/t/TMl6KESEH

Page: http://docs.telerik.com/fiddler/extend-fiddler/addicon

Please correct me if I'm right about this script:

public void OnLoad()
{
oPage = new TabPage("Timeline");
Image newImage = Image.FromFile(@"C:\Users\.........");
FiddlerApplication.UI.imglSessionIcons.Images.Add("imgKey", newImage);
oPage.ImageIndex = FiddlerApplication.UI.imglSessionIcons.Images.IndexOfKey("imgKey");
oView = new TimelineView();
oPage.Controls.Add(oView);
oView.Dock = DockStyle.Fill;
FiddlerApplication.UI.tabsViews.TabPages.Add(oPage);
}

Thanks,
Jhayar


1 Answer, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 25 Apr 2014, 07:12 PM
Hello, Jhayar-- Yes, this was a copy/paste error in the documentation. It should be more like:

public void OnLoad()
{
   oPage = new TabPage("MyTab");
   Image newImage = Image.FromFile(@"C:\Users\.........");
   FiddlerApplication.UI.imglSessionIcons.Images.Add("MyTab", newImage);
   oPage.ImageKey = "MyTab";
   oView = new myUserControl();
   oPage.Controls.Add(oView);
   oView.Dock = DockStyle.Fill;
   FiddlerApplication.UI.tabsViews.TabPages.Add(oPage);
}


Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Extensions and Customization
Asked by
Jhayar
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Share this question
or