protected override void OnPreRender(EventArgs e) { WindowFeature feature = GetWindowFeature(); if (CurrentMode == ControlShowingMode.Normal) { InitShowDialogControl(); } else { if (CurrentProcess != null) { viewerControl.InitializeValue = GetWorkflowInfo(CurrentProcess, ShowMainStream); viewerControl.Attributes["wrapperControlID"] = this.ClientID; } } OpenWindowFeature = feature.ToWindowFeatureClientString(); RegisterClientStringTable(); RegisterHover(); RegisterPopupMenu(); WfControlHelperExt.RegisterCurrentUserAppAuthInfoScript(this.Page); base.OnPreRender(e); }
/// <summary> /// 获取对话框外观属性 /// </summary> /// <returns></returns> protected override string GetDialogFeature() { WindowFeature feature = new WindowFeature(); feature.Width = 400; feature.Height = 300; feature.Resizable = false; feature.ShowStatusBar = false; feature.ShowScrollBars = false; feature.Center = true; return(feature.ToDialogFeatureClientString()); }
protected virtual string GetSmallDialogFeature() { WindowFeature feature = new WindowFeature(); feature.Width = 440; feature.Height = 256; feature.Resizable = false; feature.ShowStatusBar = false; feature.ShowScrollBars = false; feature.Center = true; return(feature.ToDialogFeatureClientString()); }
private WindowFeature GetWindowFeature() { WindowFeature feature = new WindowFeature(); feature.Center = true; feature.Width = 800; feature.LeftScript = "(window.screen.width - 800) / 2"; feature.Height = 600; feature.TopScript = "(window.screen.height - 600) / 2"; feature.Resizable = true; feature.ShowScrollBars = false; feature.ShowToolBar = false; feature.ShowStatusBar = false; return(feature); }
protected void Page_Load(object sender, EventArgs e) { //System.Threading.Thread.Sleep(1000); if (!this.IsPostBack) { this.SampleControl1.InputStyle2.ForeColor = System.Drawing.Color.Blue; // this.SampleControl1.InputStyle.Add("color", "red"); //WebUtility.ShowClientMessage("Message", "Detailfdsafdsafsdafdsaf\nfdsafdsafsdafsdaf\nfdsafdsafdsafsdafsad", "titleOK"); WebUtility.ShowClientConfirm("Message", "Detailfdsafdsafsdafdsaf\nfdsafdsafsdafsdaf\nfdsafdsafdsafsdafsad", "titleOK", "OK", "cancel", "onOK", "onCancel"); WindowFeature wf = new WindowFeature(); wf.Width = 200; wf.ShowAddressBar = true; Response.Write(WindowFeatureHelper.GetClientObject(wf)); } //WebUtility.RegisterClientMessageScript(); }
protected override string GetDialogFeature() { WindowFeature feature = new WindowFeature(); feature.Width = 420; if (ShowOpinionInput) { feature.Height = 400; } else { feature.Height = 200; } feature.Resizable = false; feature.ShowStatusBar = false; feature.ShowScrollBars = false; feature.Center = true; return(feature.ToDialogFeatureClientString()); }
private static WindowFeature GetWindowFeature() { WindowFeature feature = null; if (ResourceUriSettings.GetConfig().Features.ContainsKey("viewProcess")) { feature = ResourceUriSettings.GetConfig().Features["viewProcess"].Feature; } else { feature = new WindowFeature(); feature.Width = 800; feature.Height = 650; feature.Resizable = true; feature.ShowAddressBar = false; feature.ShowMenuBar = false; feature.Center = true; feature.ShowStatusBar = false; } return(feature); }