private void slkup_Popup(object sender, EventArgs e) { DevExpress.Utils.Win.IPopupControl popupControl = sender as DevExpress.Utils.Win.IPopupControl; DevExpress.XtraLayout.LayoutControl layoutControl = popupControl.PopupWindow.Controls[2].Controls[0] as LayoutControl; SimpleButton clearButton = ((DevExpress.XtraLayout.LayoutControlItem)layoutControl.Items.FindByName("lciClear")).Control as SimpleButton; SimpleButton findButton = ((DevExpress.XtraLayout.LayoutControlItem)layoutControl.Items.FindByName("lciButtonFind")).Control as SimpleButton; clearButton.Text = "Limpiar"; findButton.Text = "Buscar"; }
/// <summary> /// 重写SearchLookUpEdit自带GridView中按钮的显示文字 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public static void p_DrpID_Popup(object sender, EventArgs e) { DevExpress.Utils.Win.IPopupControl control = sender as DevExpress.Utils.Win.IPopupControl; DevExpress.XtraEditors.Popup.PopupBaseForm Form = control.PopupWindow as DevExpress.XtraEditors.Popup.PopupBaseForm; LayoutControlItem btFindLCI = GetFindControlLayoutItem(Form, "btFind"); btFindLCI.Control.Text = "查询"; LayoutControlItem btClearLCI = GetFindControlLayoutItem(Form, "btClear"); btClearLCI.Control.Text = "清除"; }
private static void gridLookUpEdit_Popup(object sender, EventArgs e) { DevExpress.Utils.Win.IPopupControl popup = sender as DevExpress.Utils.Win.IPopupControl; DevExpress.XtraEditors.Popup.PopupGridLookUpEditForm popupForm = popup.PopupWindow as DevExpress.XtraEditors.Popup.PopupGridLookUpEditForm; popupForm.Width = (ConfigEngine.TouchMode) ? 600 : 400; }