[Mono-bugs] [Bug 428113] StatusBarPanel.Icon and StatusBarPanel.ToolTipText don't work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Sep 27 07:26:02 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=428113

User awunwpa7 at yahoo.com.ph added comment
https://bugzilla.novell.com/show_bug.cgi?id=428113#c3





--- Comment #3 from Steve Odbc <awunwpa7 at yahoo.com.ph>  2008-09-27 05:26:02 MDT ---
First of all: Thanks a lot for fixing #427884, #428107, #428114, #428116,
#428211 so fast!

I can confirm that your icon test case is bugfree, but I was able to rewrite it
so that it doesn't work anymore: If the icon is assigned after the call to
Panels.Add() and the panel's Text property is not updated, no icon will appear.

Rewritten test case:


using System.Drawing;
using System.Windows.Forms;

public class TestForm : Form
{

    public static void Main()
    {
        Application.Run(new TestForm());
    }

    public TestForm()
    {
        StatusBar sb = new StatusBar();

        StatusBarPanel p = new StatusBarPanel();

        sb.ShowPanels = true;

        sb.Panels.Add(p);

        Controls.Add(sb);

        //   p.Text = "Hello";
        p.ToolTipText = "My tooltip";
        p.Icon = SystemIcons.Application;
    }
}


Tested with MONO 2.0 rc1 on WinXP. Icon appears with the MS framework.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list