Table of Contents

Method ShowPopup

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ShowPopup(AbstractControl, HVDropDownAlignment?)

Displays a popup window near the specified control. If position is not specified, the popup is shown below and to the left of the control.

public virtual void ShowPopup(AbstractControl control, HVDropDownAlignment? position = null)

Parameters

control AbstractControl

The control which is used to calculate the popup position. This parameter cannot be null.

position HVDropDownAlignment?

The optional horizontal and vertical alignment of the popup relative to the control. If null, the default alignment is used.

ShowPopup(PointD?, SizeD, HVDropDownAlignment?)

Shows popup at the specified location.

public virtual void ShowPopup(PointD? ptOrigin, SizeD sizePopup, HVDropDownAlignment? position = null)

Parameters

ptOrigin PointD?

Popup window location.

sizePopup SizeD

The size of the popup window.

position HVDropDownAlignment?

The optional horizontal and vertical alignment of the popup relative to the control. If null, the default alignment is used.

Remarks

The popup is positioned at (ptOrigin + size) if it opens below and to the right (default), at (ptOrigin - sizePopup) if it opens above and to the left.

ShowPopup(HorizontalAlignment?, VerticalAlignment?, Display?, bool)

Shows popup window using the specified options. This method aligns popup window location inside the specified display's client area using given horizontal and vertical alignment.

public virtual void ShowPopup(HorizontalAlignment? horz, VerticalAlignment? vert, Display? display = null, bool shrinkSize = true)

Parameters

horz HorizontalAlignment?

Horizontal alignment of the window inside display's client area.

vert VerticalAlignment?

Vertical alignment of the window inside display's client area.

display Display

Display which client area is used as a container for the window.

shrinkSize bool

Whether to shrink size of the window to fit in the display client area. Optional. Default is true.