Пример #1
0
        public WebLoadHandler( WebBrowserControl owner )
        {
            if( owner == null )
                throw new ArgumentNullException( "owner" );

            this.owner = owner;
        }
Пример #2
0
        public WebClient( WebBrowserControl owner )
        {
            if( owner == null )
                throw new ArgumentNullException( "owner" );

            this.owner = owner;
            this.lifeSpanHandler = new WebLifeSpanHandler( this.owner );
            this.displayHandler = new WebDisplayHandler( this.owner );
            this.renderHandler = new WebRenderHandler( this.owner );
            this.loadHandler = new WebLoadHandler( this.owner );
        }
Пример #3
0
        ///////////////////////////////////////////
        protected override void OnAttach()
        {
            base.OnAttach();

            //create window
            window = ControlDeclarationManager.Instance.CreateControl( "Gui\\GUISamples3Window.gui" );
            Controls.Add( window );

            addressEditBox = (EditBox)window.Controls[ "Address" ];
            addressEditBox.PreKeyDown += addressEditBox_PreKeyDown;

            webBrowserControl = (Engine.UISystem.WebBrowserControl)window.Controls[ "WebBrowser" ];

            ( (Button)window.Controls[ "Close" ] ).Click += Close_Click;
            ( (Button)window.Controls[ "Go" ] ).Click += go_Click;

            BackColor = new ColorValue( 0, 0, 0, .5f );
            MouseCover = true;
        }