Ejemplo n.º 1
0
        public override void Initialize()
        {
            base.Initialize();
            var tv = new MacTextView(EventSink, ApplicationContext);

            ViewObject               = tv;
            tv.VerticallyResizable   = false;
            tv.HorizontallyResizable = false;
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            base.Initialize();
            var tv = new MacTextView(EventSink, ApplicationContext);

            ViewObject               = tv;
            tv.VerticallyResizable   = false;
            tv.HorizontallyResizable = false;
            // Use cached font since Widget.Font size increases for each LoadText... It has to do
            // with the 'style' attribute for the 'body' element - not sure why that happens
            font = tv.Font;
        }