Esempio n. 1
0
        public MemoryPreviewPopUp(FontEx font)
        {
            Contract.Requires(font != null);

            AutoSize       = false;
            AutoClose      = false;
            DoubleBuffered = true;
            ResizeRedraw   = true;
            TabStop        = false;

            panel = new MemoryPreviewPanel(font)
            {
                Location = Point.Empty
            };

            var host = new ToolStripControlHost(panel);

            Padding           = Margin = host.Padding = host.Margin = Padding.Empty;
            MinimumSize       = panel.MinimumSize;
            panel.MinimumSize = panel.Size;
            MaximumSize       = panel.MaximumSize;
            panel.MaximumSize = panel.Size;
            Size = panel.Size;

            panel.SizeChanged += (s, e) => Size = MinimumSize = MaximumSize = panel.Size;

            Items.Add(host);
        }
Esempio n. 2
0
        public MemoryViewControl()
        {
            InitializeComponent();

            font = new FontEx
            {
                Font   = new Font("Courier New", DpiUtil.ScaleIntX(13), GraphicsUnit.Pixel),
                Width  = DpiUtil.ScaleIntX(8),
                Height = DpiUtil.ScaleIntY(16)
            };

            editBox.Font = font;
        }
        public MemoryViewControl()
        {
            InitializeComponent();

            if (Program.DesignMode)
            {
                return;
            }

            font = Program.MonoSpaceFont;

            editBox.Font = font;

            memoryPreviewPopUp = new MemoryPreviewPopUp(font);
        }
Esempio n. 4
0
            public MemoryPreviewPanel(FontEx font)
            {
                Contract.Requires(font != null);

                DoubleBuffered = true;

                nodes = new List <BaseHexNode>();

                ViewInfo = new ViewInfo
                {
                    Font = font,

                    Memory = new MemoryBuffer(),

                    HotSpots = new List <HotSpot>()
                };

                SetNodeCount(MinNodeCount);

                CalculateSize();
            }