Example #1
0
        public Disassembly(int x, int y, uint w, uint h)
        {
            Left = x;
            Top = y;
            Width = w;
            Height = h;

            _scrollbar = new Scrollbar((int)Width - 1, 0, Height);
            _scrollbar.Minimum = 0;
            _scrollbar.Maximum = 100;
            _scrollbar.Step = 6;

            _lines = new List<Line>();
        }
Example #2
0
        private int _selectedOffset; // in nibbles

        #endregion Fields

        #region Constructors

        public HexEditor(int x, int y, uint w, uint h, int rowSize)
        {
            Left = x;
            Top = y;
            Width = w;
            Height = h;

            _scrollbar = new Scrollbar((int)Width - 1, 0, Height);
            _scrollbar.Minimum = 0;
            _scrollbar.Maximum = 1;
            _scrollbar.Step = 1;

            _rowSize = rowSize;
        }
Example #3
0
        public ListBox(int x, int y, uint w, uint h)
        {
            Left = x;
            Top = y;
            Width = w;
            Height = h;

            Items = new List<ListBoxItem>();

            Selected = -1;
            SelectEnabled = false;

            _scrollbar = new Scrollbar((int)Width - 1, 1, Height - 2);
            _scrollbar.Minimum = 0;
        }