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

            GwenChild = AltGUIHelper.Create_AwesomiumControl(GetOrCreateGwenCanvas());

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

            Child = AltGUIHelper.Create_QuickFontControl();

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

            AltGUIHelper.SetNPlotSurfaceDefaultBackColor(plotSurface);
        }
예제 #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;
        }
예제 #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);
    }
예제 #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();
        }
예제 #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();
        }
예제 #9
0
        protected override void Start()
        {
            base.Start();

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

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

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

            Child = AltGUIHelper.Create_PictureBox();
        }