void CreateCanvas(string ID) { this.ID = ID; AlternateText = "Canvas wird von diesem Browser nicht unterstützt"; Width = 500; Height = 100; myScriptBld = new ClientComponentScriptBld(ClientID); }
private void CreateNumbox(string ID) { this.ID = ID; var ParentCssBld = CssStyleBld; myClientComponent = new ClientComponentScriptBld(IdClientComponent()); Content = new Control[] { new TextBox(IdTbx(), out tbx) { CssStyleBld = new Xhtml.Css.StyleBuilder() { TextAlign = Xhtml.Css.TextAlign.Right } }, new Button(IdBtnNumPadOpen()) { Text = "#", SetClientClick = myClientComponent.ShowNumPad() }, new DIV( IdNumPad(), out divNumPad, new Control[] { new Table( CreateRow(7, CreateHideCell()), CreateRow(4, CreateBackSpaceCell()), CreateRow(1, CreateClearCell()), new TableRow( CreateDigitCell(0), CreatePointCell(), CreateKommaCell() ) ) { ID = this.ID + "TabNumPad", CssStyleBld = new Xhtml.Css.StyleBuilder() { TableBorderCollapse = Xhtml.Css.BorderCollapse.Collapse, Padding = Xhtml.Css.Length.Pixel(3), Position = Xhtml.Css.Position.Fixed } } }) { CssStyleBld = new Xhtml.Css.StyleBuilder() { Visibility = Xhtml.Css.Visiblity.Collapse } } }; }