Skip to main content

BlobBaseEdit.PopupButtonsCreating Event

Allows you to hide the default OK and Cancel buttons shown in the editor’s popup menus.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public virtual event PopupButtonsEventHandler PopupButtonsCreating

Event Data

The PopupButtonsCreating event's data class is DevExpress.XtraEditors.PopupButtonsEventArgs.

Remarks

Handle the PopupButtonsCreating event and specify the ShowButtons event argument to hide both the OK and Cancel buttons. The CloseButtonStyle property in turn, allows you to hide the Cancel button only, or display its icon instead of the default caption.

private void memoExEdit1_PopupButtonsCreating(object sender, DevExpress.XtraEditors.PopupButtonsEventArgs e) {
    e.CloseButtonStyle = DevExpress.XtraEditors.Popup.BlobCloseButtonStyle.Caption;
    e.ShowButtons = false;
}

The RepositoryItemBlobBaseEdit.PopupButtonsCreating event, accessible through the BlobBaseEdit‘s BlobBaseEdit.Properties, is equivalent to the current PopupButtonsCreating event.

See Also