コード例 #1
0
        public VirtualListView()
        {
            this.Build();
            LineLayout = GetLayout();
            int width, height;

            LineLayout.SetMarkup("XYZ");
            LineLayout.GetPixelSize(out width, out height);
            ConstantHeight = height;
            CurrentRow     = 0;
            SelectedRow    = 0;
            SelectionMode  = false;
            DocumentEnd    = true;

            mColumnControl = new ColumnControl();
            vbox1.Add(mColumnControl);

            Gtk.Box.BoxChild boxChild = ((Gtk.Box.BoxChild)(this.vbox1[mColumnControl]));
            boxChild.Position = 0;
            boxChild.Expand   = false;
            boxChild.Fill     = false;
            mColumnControl.Show();

            mColumnControl.ColumnChanged += (o, e) =>
            {
                drawingarea.QueueDraw();
            };
        }
コード例 #2
0
        public VirtualListView()
        {
            this.Build();
            LineLayout = GetLayout();
            int width, height;

            LineLayout.SetMarkup("XYZ");
            LineLayout.GetPixelSize(out width, out height);
            ConstantHeight = height;
            CurrentRow     = 0;
            SelectedRow    = 0;
            SelectionMode  = false;
            DocumentEnd    = true;

            mColumnControl = new ColumnControl(this);
            vbox1.Add(mColumnControl);

            Gtk.Box.BoxChild boxChild = ((Gtk.Box.BoxChild)(this.vbox1[mColumnControl]));
            boxChild.Position = 0;
            boxChild.Expand   = false;
            boxChild.Fill     = false;
            mColumnControl.Show();

            mColumnControl.ColumnChanged += (o, e) =>
            {
                drawingarea.QueueDraw();
            };
            var bc = (Box.BoxChild)vbox1[findwidget];

            bc.Position  = 0;
            Find.Visible = false;

            Find.Escaped += (o, e) =>
            {
                FindBoxInvisible();
            };

            Find.CurrentChanged += (o, e) =>
            {
                SelectionMode = false; // as a workaround to avoid selection with CTRL+F3
            };

            drawingarea.ButtonPressEvent += drawingarea_ButtonPressEvent;
        }