Esempio n. 1
0
        public SubtitleListView()
        {
            UseSyntaxColoring = true;
            Font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
            Columns.AddRange(new[]
            {
                new ColumnHeader {
                    Text = "#", Width = 55
                },
                new ColumnHeader {
                    Width = 80
                },
                new ColumnHeader {
                    Width = 80
                },
                new ColumnHeader {
                    Width = 55
                },
                new ColumnHeader {
                    Width = -2
                }                               // -2 = as rest of space (300)
            });
            SubtitleListViewResize(this, null);

            FullRowSelect       = true;
            View                = View.Details;
            Resize             += SubtitleListViewResize;
            GridLines           = true;
            ColumnWidthChanged += SubtitleListViewColumnWidthChanged;
            OwnerDraw           = true;
            DrawItem           += new DrawListViewItemEventHandler(SubtitleListView_DrawItem);
            DrawSubItem        += new DrawListViewSubItemEventHandler(SubtitleListView_DrawSubItem);
            DrawColumnHeader   += new DrawListViewColumnHeaderEventHandler(SubtitleListView_DrawColumnHeader);
        }
Esempio n. 2
0
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// drawlistviewitemeventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this DrawListViewItemEventHandler drawlistviewitemeventhandler, Object sender, DrawListViewItemEventArgs e, AsyncCallback callback)
        {
            if (drawlistviewitemeventhandler == null)
            {
                throw new ArgumentNullException("drawlistviewitemeventhandler");
            }

            return(drawlistviewitemeventhandler.BeginInvoke(sender, e, callback, null));
        }
Esempio n. 3
0
        public BrowserListView()
        {
            OwnerDraw = true;

            HandleCreated += new EventHandler(BrowserListView_HandleCreated);
            selectedOrder  = new ArrayList();
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            DrawItem         += new DrawListViewItemEventHandler(BrowserListView_DrawItem);
            DrawSubItem      += new DrawListViewSubItemEventHandler(BrowserListView_DrawSubItem);
            DrawColumnHeader += new DrawListViewColumnHeaderEventHandler(BrowserListView_DrawColumnHeader);

            this.Alignment = ListViewAlignment.Left;
            sorter         = new BrowserListSorter();
        }
Esempio n. 4
0
        public BrowserListView()
        {
            OwnerDraw = true;

            HandleCreated += new EventHandler(BrowserListView_HandleCreated);
            selectedOrder = new ArrayList();
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            DrawItem += new DrawListViewItemEventHandler(BrowserListView_DrawItem);
            DrawSubItem += new DrawListViewSubItemEventHandler(BrowserListView_DrawSubItem);
            DrawColumnHeader += new DrawListViewColumnHeaderEventHandler(BrowserListView_DrawColumnHeader);

            this.Alignment = ListViewAlignment.Left;
            sorter = new BrowserListSorter();
        }
Esempio n. 5
0
    public TreeListView()
        : base()
    {
        View           = View.Details;
        DoubleBuffered = true;
        AllowDrop      = true;

        DrawItem            += new DrawListViewItemEventHandler(OnDrawItem);
        DrawSubItem         += new DrawListViewSubItemEventHandler(OnDrawSubItem);
        DrawColumnHeader    += new DrawListViewColumnHeaderEventHandler(OnDrawColumnHeader);
        MouseMove           += new MouseEventHandler(OnMouseMove);
        ColumnWidthChanging += new ColumnWidthChangingEventHandler(OnColumnWidthChanging);
        //KeyUp += new KeyEventHandler(OnKeyUp);
        //MouseClick += new MouseEventHandler(OnMouseClick);
        //MouseDoubleClick += new MouseEventHandler(OnMouseDoubleClick);
        //MouseUp += new MouseEventHandler(OnMouseUp);
    }
Esempio n. 6
0
        public QueryListView()
        {
            OwnerDraw         = true;
            DrawItem         += new DrawListViewItemEventHandler(OnDrawItem);
            DrawColumnHeader += new DrawListViewColumnHeaderEventHandler(OnDrawColumnHeader);

            // Columns.Add("");
            Location         = new System.Drawing.Point(46, 111);
            Name             = "queryHistoryList";
            ShowItemToolTips = true;
            Size             = new System.Drawing.Size(533, 500);
            TabIndex         = 0;
            UseCompatibleStateImageBehavior = false;
            FullRowSelect       = true;
            View                = System.Windows.Forms.View.Details;
            Resize             += new System.EventHandler(OnResize);
            ColumnWidthChanged += new ColumnWidthChangedEventHandler(OnColumnWidthChanged);
        }
Esempio n. 7
0
        public StocksList()
        {
            DoubleBuffered = true;

            SetStyle(ControlStyles.DoubleBuffer |
                     ControlStyles.OptimizedDoubleBuffer |
                     ControlStyles.AllPaintingInWmPaint, true);
            UpdateStyles();

            lvis = new ListViewItem[listMaxSize];

            DrawColumnHeader    += new DrawListViewColumnHeaderEventHandler(lv_DrawColumnHeader);
            DrawItem            += new DrawListViewItemEventHandler(lv_DrawItem);
            DrawSubItem         += new DrawListViewSubItemEventHandler(lv_DrawSubItem);
            ColumnWidthChanged  += new ColumnWidthChangedEventHandler(lv_ColumnWidthChanged);
            ColumnWidthChanging += new ColumnWidthChangingEventHandler(lv_ColumnWidthChanging);

            MouseDown += new MouseEventHandler(lv_MouseDown);
        }
Esempio n. 8
0
 public ResultsListView(main f)
 {
     mainForm            = f;
     headerFont          = UI.environmentFont;
     OwnerDraw           = true;
     DrawItem           += new DrawListViewItemEventHandler(OnDrawItem);
     DrawColumnHeader   += new DrawListViewColumnHeaderEventHandler(OnDrawColumnHeader);
     Resize             += new EventHandler(OnResize);
     ColumnWidthChanged += new ColumnWidthChangedEventHandler(OnColumnWidthChanged);
     Dock             = System.Windows.Forms.DockStyle.Fill;
     VirtualMode      = true;
     VirtualListSize  = 0;
     BorderStyle      = System.Windows.Forms.BorderStyle.None;
     FullRowSelect    = true;
     HideSelection    = false;
     Location         = new System.Drawing.Point(0, 0);
     Name             = "results";
     ShowItemToolTips = true;
     Size             = new System.Drawing.Size(200, 200);
     UseCompatibleStateImageBehavior = false;
     View                 = System.Windows.Forms.View.Details;
     ColumnClick         += new System.Windows.Forms.ColumnClickEventHandler(this.OnColumnClick);
     RetrieveVirtualItem += new System.Windows.Forms.RetrieveVirtualItemEventHandler(OnRetrieveVirtualItem);
 }
Esempio n. 9
0
        public SubtitleListView()
        {
            UseSyntaxColoring = true;
            Font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
            Columns.AddRange(new[]
            {
                new ColumnHeader { Text="#", Width=55 },
                new ColumnHeader { Width = 80 },
                new ColumnHeader { Width = 80 },
                new ColumnHeader { Width= 55 },
                new ColumnHeader { Width = -2 } // -2 = as rest of space (300)
            });
            SubtitleListViewResize(this, null);

            FullRowSelect = true;
            View = View.Details;
            Resize += SubtitleListViewResize;
            GridLines = true;
            ColumnWidthChanged += SubtitleListViewColumnWidthChanged;
            OwnerDraw = true;
            DrawItem += new DrawListViewItemEventHandler(SubtitleListView_DrawItem);
            DrawSubItem += new DrawListViewSubItemEventHandler(SubtitleListView_DrawSubItem);
            DrawColumnHeader += new DrawListViewColumnHeaderEventHandler(SubtitleListView_DrawColumnHeader);
        }
Esempio n. 10
0
 public MyListView()
 {
     OwnerDraw = true;
     DrawItem += new DrawListViewItemEventHandler(MyListView_DrawItem);
 }