Search Results for

    Show / Hide Table of Contents

    Class PopupWindow

    Represents a popup form.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.ComponentModel.Component
    System.Windows.Forms.Control
    System.Windows.Forms.ScrollableControl
    System.Windows.Forms.ContainerControl
    System.Windows.Forms.Form
    BaseForm
    PopupWindow
    ColorPopup
    Inherited Members
    BaseForm.NewDpi
    BaseForm.Storage
    BaseForm.CanSaveRestoreState
    BaseForm.DpiChanged
    BaseForm.GetImage(Int32)
    BaseForm.GetImage(String)
    BaseForm.GetImages()
    BaseForm.Localize()
    BaseForm.SaveState()
    BaseForm.RestoreState()
    BaseForm.OnFormClosed(FormClosedEventArgs)
    BaseForm.OnLoad(EventArgs)
    BaseForm.WndProc(Message)
    BaseForm.UpdateDpiDependencies()
    BaseForm.Dispose(Boolean)
    Namespace: FastReport.Controls
    Assembly: FastReport.dll
    Syntax
    public class PopupWindow : BaseForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
    Remarks

    Use this form if you want to show some controls in non-modal borderless form that behaves like other standard popup controls such as context menu. This form does not move a focus from the parent form.

    Constructors

    PopupWindow(Form)

    Initializes a new instance of the PopupWindow class with default settings.

    Declaration
    public PopupWindow(Form ownerForm)
    Parameters
    Type Name Description
    System.Windows.Forms.Form ownerForm

    The main form that owns this popup form.

    Methods

    PopupCancel(Object, PopupCancelEventArgs)

    Handler which allows to prevent canceling of popup window

    Declaration
    protected virtual void PopupCancel(object sender, PopupCancelEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    Popup helper

    PopupCancelEventArgs e

    Event arguments

    Show(Point)

    Shows the form.

    Declaration
    public void Show(Point pt)
    Parameters
    Type Name Description
    System.Drawing.Point pt

    The absolute screen location.

    Show(Control, Point)

    Shows the form.

    Declaration
    public void Show(Control ctl, Point pt)
    Parameters
    Type Name Description
    System.Windows.Forms.Control ctl

    The control which location is used as a reference for pt parameter.

    System.Drawing.Point pt

    The location relative to the ctl control.

    Show(Control, Int32, Int32)

    Shows the form.

    Declaration
    public void Show(Control ctl, int x, int y)
    Parameters
    Type Name Description
    System.Windows.Forms.Control ctl

    The control which location is used as a reference for x, y parameters.

    System.Int32 x

    The x position relative to the ctl control.

    System.Int32 y

    The y position relative to the ctl control.

    Extension Methods

    UIUtils.DrawImageAndText(Control, DrawItemEventArgs, Image, String)
    UIUtils.Dpi(Control)
    UIUtils.DpiMultiplier(Control)
    UIUtils.FontDpiMultiplier(Control)
    UIUtils.LogicalToDevice(Control, Int32)
    UIUtils.LogicalToDevice(Control, Single)
    UIUtils.LogicalToDevice(Control, Rectangle)
    UIUtils.LogicalToDevice(Control, Point)
    UIUtils.LogicalToDevice(Control, Size)
    UIUtils.LogicalToDevice(Control, Font, Boolean)
    UIUtils.GetImage(Control, Int32)
    UIUtils.GetImage(Control, String)
    UIUtils.GetImages(Control)
    Back to top © 1998-2023 Copyright Fast Reports Inc.