如何重绘GTK#小部件

时间:2017-11-19 22:44:24

标签: user-interface gtk gtk#

我如何重绘或重绘窗口或小部件? 例如,在Java Swing中,我可以使用repaint()和validate()。

using System;
using Gtk;
namespace Road111
{
    public partial class TransportDialog1 : Gtk.Dialog
    {
        public TransportDialog1()
        {
            Build();
        }
        protected void Refresh_Button(object sender, EventArgs e)
        {
           If(....)
       //refresh_command
        protected void Ok_Button(object sender, EventArgs e)
        {
           thi.Hide();
        }

        protected void Cancel_Button(object sender, EventArgs e)
        {
            this.Destroy();
        }
    }
}

0 个答案:

没有答案