Esempio n. 1
0
        protected Example_PDFGenerator_Base(Base parent, string plain, string buutonText) :
            base(parent)
        {
            //  GUI
            m_TopPanel        = new Alt.GUI.Temporary.Gwen.Control.Base(this);
            m_TopPanel.Height = 25;
            m_TopPanel.Margin = new Margin(0, 2, 2, 2);
            m_TopPanel.Dock   = Pos.Top;

#if SILVERLIGHT
            Alt.GUI.Temporary.Gwen.Control.Label label = new Alt.GUI.Temporary.Gwen.Control.Label(m_TopPanel);
            label.AutoSizeToContents = true;
            label.Text = "Processing is not yet available in Silverlight, but all functionality supported!";
#else
#if UNITY_WEBPLAYER
            Alt.GUI.Temporary.Gwen.Control.Label label = new Alt.GUI.Temporary.Gwen.Control.Label(m_TopPanel);
            label.AutoSizeToContents = true;
            label.Text = "Processing is not yet available in Unity Web Player, but all functionality supported!";
#else
            Alt.GUI.Temporary.Gwen.Control.Button button = new Alt.GUI.Temporary.Gwen.Control.Button(m_TopPanel);
            button.Text = buutonText;
            button.AutoSizeToContents = true;
            button.NormalTextColor    = Color.Green;
            button.Click += new EventHandler(button_Click);
#endif
#endif

            Base bg = new Base(this);
            bg.Dock            = Pos.Fill;
            bg.ClientBackColor = Color.FromArgb(128, Color.Black);
            bg.DrawBorder      = true;
            bg.BorderColor     = Color.DodgerBlue;

            Alt.GUI.Temporary.Gwen.Control.ScrollControl scrollControl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(bg);
            scrollControl.Dock = Pos.Fill;
            scrollControl.EnableScroll(true, true);
            scrollControl.AutoHideBars         = true;
            scrollControl.Margin               = Margin.Five;
            scrollControl.ShouldDrawBackground = false;

            m_LabelText                    = new Alt.GUI.Temporary.Gwen.Control.Label(scrollControl);
            m_LabelText.Margin             = Margin.Two;
            m_LabelText.Location           = PointI.Zero;
            m_LabelText.AutoSizeToContents = true;
            m_LabelText.TextColor          = Color.White;
            m_LabelText.MouseInputEnabled  = true;

            System.IO.Stream src = Alt.IO.VirtualFile.OpenRead("AltData/PdfSharp/plain/" + plain + ".plain");
            if (src == null)
            {
                src = Alt.IO.VirtualFile.OpenRead("AltData/MigraDoc/plain/" + plain + ".plain");
            }
            if (src != null)
            {
                using (System.IO.StreamReader stream = new System.IO.StreamReader(src))
                {
                    m_LabelText.Text = stream.ReadToEnd();
                }
            }
        }
Esempio n. 2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);


            m_Splitter      = new Alt.GUI.Temporary.Gwen.Control.HorizontalSplitter(this);
            m_Splitter.Dock = Pos.Fill;


            Alt.GUI.Temporary.Gwen.Control.Base imageMainPanel = new Alt.GUI.Temporary.Gwen.Control.Base(m_Splitter);
            imageMainPanel.Dock = Pos.Fill;


            m_TopLabel = new Alt.GUI.Temporary.Gwen.Control.Label(this);            //imageMainPanel);
            m_TopLabel.AutoSizeToContents = true;
            m_TopLabel.Text      = label_TOP_text + " (please, wait while map image creating)";
            m_TopLabel.TextColor = Color.Yellow;
            m_TopLabel.Dock      = Pos.Top;
            m_TopLabel.Margin    = new Margin(0, 3, 0, 7);


            Alt.GUI.Temporary.Gwen.Control.ScrollControl scrollControl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(imageMainPanel);
            scrollControl.Margin = Margin.One;
            scrollControl.Dock   = Pos.Fill;
            scrollControl.EnableScroll(true, true);
            scrollControl.AutoHideBars = true;


            Alt.GUI.Temporary.Gwen.Control.Base logMainPanel = new Alt.GUI.Temporary.Gwen.Control.Base(m_Splitter);

            Alt.GUI.Temporary.Gwen.Control.Label label = new Alt.GUI.Temporary.Gwen.Control.Label(logMainPanel);
            label.AutoSizeToContents = true;
            label.Text      = "Processing Log:";
            label.TextColor = Color.Yellow;
            label.Dock      = Pos.Top;
            label.Margin    = new Margin(0, 0, 0, 5);

            m_Log      = new Alt.GUI.Temporary.Gwen.Control.ListBox(logMainPanel);
            m_Log.Dock = Pos.Fill;

            m_Splitter.SetPanel(0, imageMainPanel);
            m_Splitter.SetPanel(1, logMainPanel);
            m_Splitter.SetVValue(0.75f);


            m_ImagePanel          = new Base(scrollControl);
            m_ImagePanel.Margin   = Margin.Two;
            m_ImagePanel.Location = PointI.Zero;
            m_ImagePanel.Size     = new SizeI(100, 100);
            m_ImagePanel.Paint   += new GUI.PaintEventHandler(ImagePanel_Paint);


            m_BGThread = new Thread(new ThreadStart(this.CreateBitmap));
            m_BGThread.SetApartmentState(ApartmentState.STA);
            m_BGThread.Start();
        }
Esempio n. 3
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);


            m_HtmlContainer                 = new HtmlContainer();
            m_HtmlContainer.Refresh        += OnRefresh;
            m_HtmlContainer.RenderError    += OnRenderError;
            m_HtmlContainer.StylesheetLoad += OnStylesheetLoad;
            m_HtmlContainer.ImageLoad      += OnImageLoad;


            //  FillBackground
            m_FillBackground               = new LabeledCheckBox(m_LeftPanel);
            m_FillBackground.Text          = "Fill Background";
            m_FillBackground.Dock          = Pos.Bottom;
            m_FillBackground.Margin        = new Margin(2, 10, 2, 0);
            m_FillBackground.IsChecked     = true;
            m_FillBackground.CheckChanged += new GwenEventHandler(FillBackground_CheckChanged);


#if !SILVERLIGHT
            //  AntiAlias Text
            m_AntiAliasText        = new LabeledCheckBox(m_LeftPanel);
            m_AntiAliasText.Text   = "AntiAlias Text";
            m_AntiAliasText.Dock   = Pos.Bottom;
            m_AntiAliasText.Margin = new Margin(2, 10, 2, 2);
            //m_AntiAliasText.IsChecked = true;
            m_AntiAliasText.CheckChanged += new GwenEventHandler(AntiAliasText_CheckChanged);
#endif


            //  Width
            m_WidthSlider      = new HorizontalSlider(m_RightPanel);
            m_WidthSlider.Dock = Pos.Bottom;
            m_WidthSlider.SetRange(200, 1000);
            m_WidthSlider.Height        = 20;
            m_WidthSlider.ValueChanged += new GwenEventHandler(WidthSlider_ValueChanged);

            m_WidthSliderLabel = new Alt.GUI.Temporary.Gwen.Control.Label(m_RightPanel);
            m_WidthSliderLabel.AutoSizeToContents = true;
            m_WidthSliderLabel.Dock   = Pos.Bottom;
            m_WidthSliderLabel.Margin = new Margin(0, 10, 0, 0);


            //  Image
            Base imageMainPanel = new Base(m_RightPanel);
            imageMainPanel.Dock = Pos.Fill;


            m_ImageScrollControl        = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(imageMainPanel);
            m_ImageScrollControl.Margin = Margin.One;
            m_ImageScrollControl.Dock   = Pos.Fill;
            m_ImageScrollControl.EnableScroll(true, true);
            m_ImageScrollControl.AutoHideBars         = true;
            m_ImageScrollControl.ShouldDrawBackground = false;


            m_ImagePanel          = new Base(m_ImageScrollControl);
            m_ImagePanel.Margin   = Margin.Two;
            m_ImagePanel.Location = PointI.Zero;
            m_ImagePanel.Size     = new SizeI(100, 100);
            m_ImagePanel.Paint   += new GUI.PaintEventHandler(ImagePanel_Paint);
            m_ImagePanel.Hide();


            m_WidthSlider.Value = 500;


            SelectFirstExample();
        }
Esempio n. 4
0
        void CreateUI1()
        {
            m_MainSplitter      = new Alt.GUI.Temporary.Gwen.Control.VerticalSplitter(this);
            m_MainSplitter.Dock = Pos.Fill;


            m_TabControl = new Alt.GUI.Temporary.Gwen.Control.TabControl(m_MainSplitter);
            m_TabControl.SetBounds(0, 0, 220, 200);
            m_TabControl.Dock = Pos.Right;


            m_MainSplitter.SetPanel(1, m_TabControl);
            m_MainSplitter.SetHValue(0.73f);


            //  map Tab
            Alt.GUI.Temporary.Gwen.Control.TabButton button = m_TabControl.AddPage("map");
            Base page = button.Page;
            {
                m_Page_map_ScrollControl      = new ScrollControl(page);
                m_Page_map_ScrollControl.Dock = Pos.Fill;
                m_Page_map_ScrollControl.EnableScroll(false, true);
                m_Page_map_ScrollControl.AutoHideBars = true;

                m_Page_map_MainPanel = new Base(m_Page_map_ScrollControl);
                m_Page_map_MainPanel.SetBounds(0, 0, 100, 500);
                m_Page_map_MainPanel.Dock = Pos.Top;


                int btn_offset = 7;


                //  coordinates
                m_Page_map_GroupBox_coordinates                    = new Alt.GUI.Temporary.Gwen.Control.GroupBox(m_Page_map_MainPanel);
                m_Page_map_GroupBox_coordinates.TextColor          = LabelColor;
                m_Page_map_GroupBox_coordinates.Text               = "coordinates";
                m_Page_map_GroupBox_coordinates.Dock               = Pos.Top;
                m_Page_map_GroupBox_coordinates.AutoSizeToContents = true;
                {
                    //  lat
                    Alt.GUI.Temporary.Gwen.Control.Label label = new Alt.GUI.Temporary.Gwen.Control.Label(m_Page_map_GroupBox_coordinates);
                    label.TextColor          = LabelColor;
                    label.AutoSizeToContents = true;
                    label.Text = "lat:";
                    label.Dock = Pos.Top;
                    //  set top offset
                    label.Margin = new Margin(0, 5, 0, 2);

                    textBoxLat          = new Alt.GUI.Temporary.Gwen.Control.TextBox(m_Page_map_GroupBox_coordinates);
                    textBoxLat.ReadOnly = true;
                    textBoxLat.Dock     = Pos.Top;
                    textBoxLat.Text     = "54.6961334816182";


                    //  lng
                    label                    = new Alt.GUI.Temporary.Gwen.Control.Label(m_Page_map_GroupBox_coordinates);
                    label.TextColor          = LabelColor;
                    label.AutoSizeToContents = true;
                    label.Text               = "lng:";
                    label.Dock               = Pos.Top;
                    label.Margin             = new Margin(0, 0, 0, 2);

                    textBoxLng          = new Alt.GUI.Temporary.Gwen.Control.TextBox(m_Page_map_GroupBox_coordinates);
                    textBoxLng.ReadOnly = true;
                    textBoxLng.Dock     = Pos.Top;
                    textBoxLng.Text     = "25.2985095977783";


                    //  goto
                    label                    = new Alt.GUI.Temporary.Gwen.Control.Label(m_Page_map_GroupBox_coordinates);
                    label.TextColor          = LabelColor;
                    label.AutoSizeToContents = true;
                    label.Text               = "goto:";
                    label.Dock               = Pos.Top;
                    label.Margin             = new Margin(0, 0, 0, 2);

                    textBoxGeo          = new Alt.GUI.Temporary.Gwen.Control.TextBox(m_Page_map_GroupBox_coordinates);
                    textBoxGeo.ReadOnly = true;
                    textBoxGeo.Dock     = Pos.Top;
                    textBoxGeo.Text     = "lietuva vilnius";


                    //  GoTo
                    button8      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_coordinates);
                    button8.Text = "GoTo !";
                    button8.Dock = Pos.Top;
                    //  set top offset
                    button8.Margin = new Margin(0, btn_offset, 0, 0);
                    button8.Click += new EventHandler(button8_Click);


                    //  Reload
                    button1      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_coordinates);
                    button1.Text = "Reload";
                    button1.Dock = Pos.Top;
                    //  set top offset
                    button1.Margin = new Margin(0, btn_offset, 0, 0);
                    button1.Click += new EventHandler(button1_Click);
                }


                //  gmap
                m_Page_map_GroupBox_gmap                    = new Alt.GUI.Temporary.Gwen.Control.GroupBox(m_Page_map_MainPanel);
                m_Page_map_GroupBox_gmap.TextColor          = LabelColor;
                m_Page_map_GroupBox_gmap.Text               = "gmap";
                m_Page_map_GroupBox_gmap.Dock               = Pos.Top;
                m_Page_map_GroupBox_gmap.AutoSizeToContents = true;
                //  set top offset
                m_Page_map_GroupBox_gmap.Margin = new Margin(0, 10, 0, 0);
                {
                    //  type
                    Alt.GUI.Temporary.Gwen.Control.Label label = new Alt.GUI.Temporary.Gwen.Control.Label(m_Page_map_GroupBox_gmap);
                    label.TextColor          = LabelColor;
                    label.AutoSizeToContents = true;
                    label.Text = "type:";
                    label.Dock = Pos.Top;
                    //  set top offset
                    label.Margin = new Margin(0, 5, 0, 0);

                    comboBoxMapType      = new Alt.GUI.Temporary.Gwen.Control.ComboBox(m_Page_map_GroupBox_gmap);
                    comboBoxMapType.Dock = Pos.Top;


                    //  mode
                    label                    = new Alt.GUI.Temporary.Gwen.Control.Label(m_Page_map_GroupBox_gmap);
                    label.TextColor          = LabelColor;
                    label.AutoSizeToContents = true;
                    label.Text               = "mode:";
                    label.Dock               = Pos.Top;

                    comboBoxMode      = new Alt.GUI.Temporary.Gwen.Control.ComboBox(m_Page_map_GroupBox_gmap);
                    comboBoxMode.Dock = Pos.Top;
#if UNITY_WEBPLAYER || UNITY_5
                    comboBoxMode.Disable();
#endif


                    //  Current Marker
                    checkBoxCurrentMarker           = new Alt.GUI.Temporary.Gwen.Control.LabeledCheckBox(m_Page_map_GroupBox_gmap);
                    checkBoxCurrentMarker.TextColor = LabelColor;
                    checkBoxCurrentMarker.UseCurrentColorAsNormal = true;
                    checkBoxCurrentMarker.Text = "Current Marker";
                    checkBoxCurrentMarker.Dock = Pos.Top;
                    //  set top offset
                    checkBoxCurrentMarker.Margin          = new Margin(0, btn_offset, 0, 0);
                    checkBoxCurrentMarker.CheckedChanged += new EventHandler(checkBoxCurrentMarker_CheckedChanged);


                    //  Grid
                    checkBoxDebug           = new Alt.GUI.Temporary.Gwen.Control.LabeledCheckBox(m_Page_map_GroupBox_gmap);
                    checkBoxDebug.TextColor = LabelColor;
                    checkBoxDebug.UseCurrentColorAsNormal = true;
                    checkBoxDebug.Text = "Grid";
                    checkBoxDebug.Dock = Pos.Top;
                    //  set top offset
                    checkBoxDebug.Margin          = new Margin(0, btn_offset, 0, 0);
                    checkBoxDebug.CheckedChanged += new EventHandler(checkBoxDebug_CheckedChanged);


                    //  Drag Map
                    checkBoxCanDrag           = new Alt.GUI.Temporary.Gwen.Control.LabeledCheckBox(m_Page_map_GroupBox_gmap);
                    checkBoxCanDrag.TextColor = LabelColor;
                    checkBoxCanDrag.UseCurrentColorAsNormal = true;
                    checkBoxCanDrag.Text = "Drag Map (right mouse button)";
                    checkBoxCanDrag.Dock = Pos.Top;
                    //  set top offset
                    checkBoxCanDrag.Margin          = new Margin(0, btn_offset, 0, 0);
                    checkBoxCanDrag.CheckedChanged += new EventHandler(checkBoxCanDrag_CheckedChanged);
                }


                //  routing
                m_Page_map_GroupBox_routing                    = new Alt.GUI.Temporary.Gwen.Control.GroupBox(m_Page_map_MainPanel);
                m_Page_map_GroupBox_routing.TextColor          = LabelColor;
                m_Page_map_GroupBox_routing.Text               = "routing";
                m_Page_map_GroupBox_routing.Dock               = Pos.Top;
                m_Page_map_GroupBox_routing.AutoSizeToContents = true;
                //  set top offset
                m_Page_map_GroupBox_routing.Margin = new Margin(0, 10, 0, 0);
                {
                    //  set Start
                    buttonSetStart      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_routing);
                    buttonSetStart.Text = "set Start";
                    buttonSetStart.Dock = Pos.Top;
                    //  set top offset
                    buttonSetStart.Margin = new Margin(0, 7, 0, 0);
                    buttonSetStart.Click += new EventHandler(buttonSetStart_Click);


                    //  set End
                    buttonSetEnd      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_routing);
                    buttonSetEnd.Text = "set End";
                    buttonSetEnd.Dock = Pos.Top;
                    //  set top offset
                    buttonSetEnd.Margin = new Margin(0, btn_offset, 0, 0);
                    buttonSetEnd.Click += new EventHandler(buttonSetEnd_Click);


                    //  Add Route
                    button3      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_routing);
                    button3.Text = "Add Route";
                    button3.Dock = Pos.Top;
                    //  set top offset
                    button3.Margin = new Margin(0, btn_offset, 0, 10);
                    button3.Click += new EventHandler(button3_Click);


                    //  Clear Routes
                    button6      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_routing);
                    button6.Text = "Clear Routes";
                    button6.Dock = Pos.Top;
                    //  set top offset
                    button6.Margin = new Margin(0, btn_offset, 0, 0);
                    button6.Click += new EventHandler(button6_Click);


                    //  Clear Polygons
                    button15      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_routing);
                    button15.Text = "Clear Polygons";
                    button15.Dock = Pos.Top;
                    //  set top offset
                    button15.Margin = new Margin(0, btn_offset, 0, 0);
                    button15.Click += new EventHandler(button15_Click);
                }


                //  markers
                m_Page_map_GroupBox_markers                    = new Alt.GUI.Temporary.Gwen.Control.GroupBox(m_Page_map_MainPanel);
                m_Page_map_GroupBox_markers.TextColor          = LabelColor;
                m_Page_map_GroupBox_markers.Text               = "markers";
                m_Page_map_GroupBox_markers.Dock               = Pos.Top;
                m_Page_map_GroupBox_markers.AutoSizeToContents = true;
                //  set top offset
                m_Page_map_GroupBox_markers.Margin = new Margin(0, 10, 0, 0);
                {
                    //  Add Marker
                    button4      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_markers);
                    button4.Text = "Add Marker";
                    button4.Dock = Pos.Top;
                    //  set top offset
                    button4.Margin = new Margin(0, 7, 0, 0);
                    button4.Click += new EventHandler(button4_Click);


                    //  place info
                    checkBoxPlacemarkInfo           = new Alt.GUI.Temporary.Gwen.Control.LabeledCheckBox(m_Page_map_GroupBox_markers);
                    checkBoxPlacemarkInfo.TextColor = LabelColor;
                    checkBoxPlacemarkInfo.UseCurrentColorAsNormal = true;
                    checkBoxPlacemarkInfo.Text = "place info";
                    checkBoxPlacemarkInfo.Dock = Pos.Top;
                    //  set top offset
                    checkBoxPlacemarkInfo.Margin    = new Margin(0, btn_offset, 0, 0);
                    checkBoxPlacemarkInfo.IsChecked = true;


                    //  Zoom Center
                    button7      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_markers);
                    button7.Text = "Zoom Center";
                    button7.Dock = Pos.Top;
                    //  set top offset
                    button7.Margin = new Margin(0, btn_offset, 0, 0);
                    button7.Click += new EventHandler(button7_Click);


                    //  Clear All
                    button5      = new Alt.GUI.Temporary.Gwen.Control.Button(m_Page_map_GroupBox_markers);
                    button5.Text = "Clear All";
                    button5.Dock = Pos.Top;
                    //  set top offset
                    button5.Margin = new Margin(0, btn_offset, 0, 0);
                    button5.Click += new EventHandler(button5_Click);
                }
            }
        }
Esempio n. 5
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(10, 10, 100, 100);

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Twice As Big");
                pTestButton.SetBounds(0, 0, 200, 200);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(110, 10, 100, 100);

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Same Size");
                pTestButton.SetBounds(0, 0, 100, 100);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new ScrollControl(this);
                ctrl.SetBounds(210, 10, 100, 100);

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Wide");
                pTestButton.SetBounds(0, 0, 200, 50);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(310, 10, 100, 100);

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Tall");
                pTestButton.SetBounds(0, 0, 50, 200);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(410, 10, 100, 100);
                ctrl.EnableScroll(false, true);

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Vertical");
                pTestButton.SetBounds(0, 0, 200, 200);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(510, 10, 100, 100);
                ctrl.EnableScroll(true, false);

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Horizontal");
                pTestButton.SetBounds(0, 0, 200, 200);
            }

            // Bottom Row

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(10, 110, 100, 100);
                ctrl.AutoHideBars = true;

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Twice As Big");
                pTestButton.SetBounds(0, 0, 200, 200);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(110, 110, 100, 100);
                ctrl.AutoHideBars = true;

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Same Size");
                pTestButton.SetBounds(0, 0, 100, 100);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(210, 110, 100, 100);
                ctrl.AutoHideBars = true;

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Wide");
                pTestButton.SetBounds(0, 0, 200, 50);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(310, 110, 100, 100);
                ctrl.AutoHideBars = true;

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Tall");
                pTestButton.SetBounds(0, 0, 50, 200);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(410, 110, 100, 100);
                ctrl.AutoHideBars = true;
                ctrl.EnableScroll(false, true);

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Vertical");
                pTestButton.SetBounds(0, 0, 200, 200);
            }

            {
                Alt.GUI.Temporary.Gwen.Control.ScrollControl ctrl = new Alt.GUI.Temporary.Gwen.Control.ScrollControl(this);
                ctrl.SetBounds(510, 110, 100, 100);
                ctrl.AutoHideBars = true;
                ctrl.EnableScroll(true, false);

                Alt.GUI.Temporary.Gwen.Control.Button pTestButton = new Alt.GUI.Temporary.Gwen.Control.Button(ctrl);
                pTestButton.SetText("Horinzontal");
                pTestButton.SetBounds(0, 0, 200, 200);
            }
        }