Example #1
0
        protected override void Start()
        {
            base.Start();

            GwenChild = AltGUIHelper.Create_AwesomiumControl(GetOrCreateGwenCanvas());

            Child.BackColor = Alt.Sketch.Color.FromArgb(96, Alt.Sketch.Color.DodgerBlue);
        }
Example #2
0
        protected override void Start()
        {
            base.Start();

            Child = AltGUIHelper.Create_QuickFontControl();

            Child.Paint += QuickFont_OnPaint;
        }
Example #3
0
        public void SetPlotDefaultBackColor()
        {
            Alt.GUI.NPlot.Temporary.Gwen.PlotSurface2DControl plotSurface = PlotSurface;
            if (plotSurface == null)
            {
                return;
            }

            AltGUIHelper.SetNPlotSurfaceDefaultBackColor(plotSurface);
        }
Example #4
0
        protected override void Start()
        {
            base.Start();

            GwenChild = AltGUIHelper.Create_HtmlLabel(GetOrCreateGwenCanvas());

            Alt.GUI.HtmlRenderer.Temporary.Gwen.HtmlLabel htmlLabel = HtmlLabel;
            if (htmlLabel == null)
            {
                return;
            }

            htmlLabel.RenderError    += OnRenderError;
            htmlLabel.LinkClicked    += OnLinkClicked;
            htmlLabel.StylesheetLoad += OnStylesheetLoad;
            htmlLabel.ImageLoad      += OnImageLoad;
        }
Example #5
0
    protected void Start(Alt.GUI.NPlot.Temporary.Gwen.PlotSurface2DControl plotSurface)
    {
        if (plotSurface == null)
        {
            return;
        }

        plotSurface.Clear();
        PlotDataSet(plotSurface.Inner);

        plotSurface.AddInteraction(new Alt.GUI.NPlot.Temporary.Gwen.PlotSurface2DControl.Interactions.HorizontalDrag());
        plotSurface.AddInteraction(new Alt.GUI.NPlot.Temporary.Gwen.PlotSurface2DControl.Interactions.VerticalDrag());
        plotSurface.AddInteraction(new Alt.GUI.NPlot.Temporary.Gwen.PlotSurface2DControl.Interactions.AxisDrag(true));

        plotSurface.Refresh();

        AltGUIHelper.SetNPlotSurfaceDefaultBackColor(plotSurface);
    }
Example #6
0
        protected override void Start()
        {
            base.Start();

            GwenChild = AltGUIHelper.Create_FarseerPhysicsContainer(GetOrCreateGwenCanvas());

            AltGUIHelper.FarseerPhysicsContainer farseerPhysicsContainer = FarseerPhysicsContainer;
            if (farseerPhysicsContainer == null)
            {
                return;
            }

            farseerPhysicsContainer.Paint     += FarseerPhysicsContainer_OnPaint;
            farseerPhysicsContainer.MouseDown += RaiseFarseerPhysicsMouseDown;
            farseerPhysicsContainer.MouseUp   += RaiseFarseerPhysicsMouseUp;
            farseerPhysicsContainer.MouseMove += RaiseFarseerPhysicsMouseMove;

            farseerPhysicsContainer.Focus();
        }
Example #7
0
        protected override void Start()
        {
            base.Start();

            GwenChild = AltGUIHelper.Create_Box2DContainer(GetOrCreateGwenCanvas(), DebugDraw);

            AltGUIHelper.Box2DContainer box2DContainer = Box2DContainer;
            if (box2DContainer == null)
            {
                return;
            }

            m_InfoFont = new Alt.Sketch.Font("Arial", 10.01, Alt.Sketch.FontStyle.Bold);

            box2DContainer.Paint     += Box2DContainer_OnPaint;
            box2DContainer.MouseDown += RaiseBox2DMouseDown;
            box2DContainer.MouseUp   += RaiseBox2DMouseUp;
            box2DContainer.MouseMove += RaiseBox2DMouseMove;

            box2DContainer.Focus();
        }
        protected override void Start()
        {
            base.Start();

            Child = AltGUIHelper.Create_ICSharpCodeTextEditorControl();
        }
Example #9
0
        protected override void Start()
        {
            base.Start();

            GwenChild = AltGUIHelper.Create_NPlotSurface(GetOrCreateGwenCanvas());
        }
Example #10
0
        protected override void Start()
        {
            base.Start();

            GwenChild = AltGUIHelper.Create_ZedGraphControl(GetOrCreateGwenCanvas());
        }
Example #11
0
        protected override void Start()
        {
            base.Start();

            Child = AltGUIHelper.Create_SVGControl();
        }
Example #12
0
        protected override void Start()
        {
            base.Start();

            Child = AltGUIHelper.Create_PictureBox();
        }