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>(); }
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; }
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; }