Hello everyone,

I am having problems when I try to remove the close button of a window in a GTK# application.

I tried setting the property GtkWindow.Deletable to *false* and it was able to remove the close button. But it has also removed the rest of the window except from the *title bar*.

Attached with this message is a sample code of the problem that I experienced.
    I compiled the code in a windows environment using
    *gmcs -pkg:glade-sharp-2.0 DeletableTester.cs

*     Is this a problem with Mono?

    Thanks in advance.

Regards,
Marc Glenn
/*
 * Created by SharpDevelop.
 * User: Hybrid
 * Date: 10/17/2007
 * Time: 5:16 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using Gtk;

public class DeletableTester
{
        public static void Main (string[] args)
        {
                new DeletableTester (args);
        }
 
        public DeletableTester (string[] args) 
        {
                
                Application.Init();
                
        
                MessageDialog md1 = new MessageDialog (null, 
                                      DialogFlags.Modal,
                                   MessageType.Question, 
                                      ButtonsType.YesNo, "");
                
                md1.UseMarkup = true;
        md1.SecondaryUseMarkup = true;
        md1.Text = "<b>Window cannot be deleted</b>";
        
        md1.Deletable = false;
                        
        md1.Title = "Undeletable Window";
                
        md1.Run();
                
        md1.Destroy();
        
        Application.Run();
        
        }
}
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to