Ejemplo n.º 1
0
        protected override void FillContent()
        {
            Table     table = new Table();
            TableRow  row   = null;
            TableCell cell;

            InnerQuickFormatting.EnsureChildControls();

            Collection <StyleItem> items = new Collection <StyleItem>();

            foreach (Control control in InnerQuickFormatting.Controls[1].Controls)
            {
                StyleItem item = control as StyleItem;
                items.Add(item);
            }

            int n = 0;

            foreach (StyleItem item in items)
            {
                row = new TableRow();
                table.Rows.Add(row);
                cell = new TableCell();
                cell.Attributes["class"] = "oae_quickformatting";
                ButtonInPopup popupButton = new ButtonInPopup(item);
                RegisteredHandlers.Add(new Obout.Ajax.UI.HTMLEditor.Popups.RegisteredField("button_" + n.ToString(), popupButton));
                n++;
                cell.Controls.Add(popupButton);
                cell.Style[HtmlTextWriterStyle.BackgroundColor] = "Transparent";
                cell.Style[HtmlTextWriterStyle.FontSize]        = "10pt";
                cell.Style[HtmlTextWriterStyle.Padding]         = "0px";
                cell.Style[HtmlTextWriterStyle.FontFamily]      = "Verdana";
                cell.Style[HtmlTextWriterStyle.Color]           = "Blue";
                cell.Style[HtmlTextWriterStyle.Cursor]          = "pointer";
                row.Cells.Add(cell);
            }

            table.Attributes.Add("border", "0");
            table.Attributes.Add("cellspacing", "0");
            table.Attributes.Add("cellpadding", "0");
            table.Style["background-color"] = "transparent";

            Content.Add(table);
        }
Ejemplo n.º 2
0
        protected override void FillContent()
        {
            Table table = new Table();
            TableRow row = null;
            TableCell cell;

            InnerQuickFormatting.EnsureChildControls();

            Collection<StyleItem> items = new Collection<StyleItem>();
            foreach (Control control in InnerQuickFormatting.Controls[1].Controls)
            {
                StyleItem item = control as StyleItem;
                items.Add(item);
            }

            int n=0;
            foreach (StyleItem item in items)
            {
                row = new TableRow();
                table.Rows.Add(row);
                cell = new TableCell();
                cell.Attributes["class"] = "oae_quickformatting";
                ButtonInPopup popupButton = new ButtonInPopup(item);
                RegisteredHandlers.Add(new Obout.Ajax.UI.HTMLEditor.Popups.RegisteredField("button_" + n.ToString(), popupButton));
                n++;
                cell.Controls.Add(popupButton);
                cell.Style[HtmlTextWriterStyle.BackgroundColor] = "Transparent";
                cell.Style[HtmlTextWriterStyle.FontSize] = "10pt";
                cell.Style[HtmlTextWriterStyle.Padding] = "0px";
                cell.Style[HtmlTextWriterStyle.FontFamily] = "Verdana";
                cell.Style[HtmlTextWriterStyle.Color] = "Blue";
                cell.Style[HtmlTextWriterStyle.Cursor] = "pointer";
                row.Cells.Add(cell);
            }

            table.Attributes.Add("border", "0");
            table.Attributes.Add("cellspacing", "0");
            table.Attributes.Add("cellpadding", "0");
            table.Style["background-color"] = "transparent";

            Content.Add(table);
        }