Inheritance: BrightIdeasSoftware.BaseRenderer
Ejemplo n.º 1
0
        public log_view(Form parent, string name)
        {
            Debug.Assert(parent is log_view_parent);

            filter_ = new filter(this.create_match_object);
            filter_.on_change = on_change;

            InitializeComponent();
            this.parent = parent;
            ++ignore_change_;
            viewName.Text = name;
            --ignore_change_;
            model_ = new log_view_data_source(this.list, this ) { name = name };
            list.VirtualListDataSource = model_;

            load_font();
            lv_parent.handle_subcontrol_keys(this);

            render_ = new log_view_render(this);
            foreach (var col in list.AllColumns) {
                col.Renderer = render_;
                col.Tag = new log_view_column_tag(this);
            }
            right_click_ = new log_view_right_click(this);

            cur_col_ = msgCol.fixed_index();
            edit.on_sel_changed = on_edit_sel_changed;
            edit.on_search_ahead = search_ahead;
            edit.init(this);
            edit.BringToFront();

            list.ColumnRightClick += list_ColumnRightClick;
            list.ColumnWidthChanged += List_on_column_width_changed;
            list.ColumnWidthChanging += List_on_column_width_changing;
            msgCol.FillsFreeSpace = !app.inst.show_horizontal_scrollbar;
        }
Ejemplo n.º 2
0
        public log_view(Form parent, string name)
        {
            Debug.Assert(parent is log_view_parent);

            filter_ = new filter(this.create_match_object);
            filter_.on_change = on_change;

            InitializeComponent();
            this.parent = parent;
            ++ignore_change_;
            viewName.Text = name;
            --ignore_change_;
            model_ = new log_view_data_source(this.list, this ) { name = name };
            list.VirtualListDataSource = model_;

            load_font();
            lv_parent.handle_subcontrol_keys(this);

            render_ = new log_view_render(this);
            foreach (var col in list.AllColumns)
                (col as OLVColumn).Renderer = render_;
            right_click_ = new log_view_right_click(this);

            // just an example:
            //render_.set_override("settings", new log_view_render.print_info { fg = Color.Blue, bold = true });
            cur_col_ = msgCol.fixed_index();
            edit.on_sel_changed = on_edit_sel_changed;
            edit.on_search_ahead = search_ahead;
            edit.init(this);
            edit.BringToFront();

            list.ColumnRightClick += list_ColumnRightClick;
            list.ColumnWidthChanged += List_on_column_width_changed;
            list.ColumnWidthChanging += List_on_column_width_changing;
        }