Ejemplo n.º 1
0
        public __ListBox()
        {
            //HTMLTarget = new IHTMLSelect();
            //HTMLTarget.multiple = true;

            this.HTMLTarget = new IHTMLDiv();
            this.HTMLTarget.style.backgroundColor = JSColor.System.Window;
            this.HTMLTarget.style.cursor = DOM.IStyle.CursorEnum.@default;
            this.HTMLTarget.style.border = "1px solid gray";
            this.HTMLTarget.style.overflow = DOM.IStyle.OverflowEnum.auto;
            this.HTMLTarget.style.padding = "0.2em";
            this.HTMLTarget.onselectstart +=
                e =>
                {
                    e.preventDefault();
                };

            Items = new __ObjectCollection { Owner = this };

            this.InternalSetDefaultFont();
        }
Ejemplo n.º 2
0
        public __ListBox()
        {
            //HTMLTarget = new IHTMLSelect();
            //HTMLTarget.multiple = true;

            this.HTMLTarget = new IHTMLDiv();
            this.HTMLTarget.style.backgroundColor = JSColor.System.Window;
            this.HTMLTarget.style.cursor          = DOM.IStyle.CursorEnum.@default;
            this.HTMLTarget.style.border          = "1px solid gray";
            this.HTMLTarget.style.overflow        = DOM.IStyle.OverflowEnum.auto;
            this.HTMLTarget.style.padding         = "0.2em";
            this.HTMLTarget.onselectstart        +=
                e =>
            {
                e.PreventDefault();
            };

            Items = new __ObjectCollection {
                Owner = this
            };

            this.InternalSetDefaultFont();
        }