Fiddler Documentation Page

2 posts, 0 answers
  1. Jhayar
    Jhayar avatar
    1 posts
    Member since:
    Apr 2014

    Posted 24 Apr 2014 Link to this post

    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


  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 25 Apr 2014 Link to this post

    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.

     
Back to Top