C# Class PresentationControls.Popup

Show file Open project: lallousx86/WEPExplorer Class Usage Examples

Public Properties

Property Type Description
LastClosedTimeStamp DateTime

Public Methods

Method Description
PaintSizeGrip ( PaintEventArgs e ) : void

Paints the size grip.

Popup ( Control content ) : System

Initializes a new instance of the PopupControl.Popup class.

Pop-up will be disposed immediately after disposion of the content control.

Show ( Control control ) : void

Shows pop-up window below the specified control.

When there is no space below the specified control, the pop-up control is shown above it.

Show ( Control control, Rectangle area ) : void

Shows pop-up window below the specified area of specified control.

When there is no space below specified area, the pop-up control is shown above it.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosed ( ToolStripDropDownClosedEventArgs e ) : void
OnOpened ( EventArgs e ) : void

Raises the E:System.Windows.Forms.ToolStripDropDown.Opened event.

OnOpening ( CancelEventArgs e ) : void

Raises the E:System.Windows.Forms.ToolStripDropDown.Opening event.

OnSizeChanged ( EventArgs e ) : void

Raises the E:System.Windows.Forms.Control.SizeChanged event.

OnVisibleChanged ( EventArgs e ) : void
ProcessDialogKey ( Keys keyData ) : bool

Processes a dialog box key.

SetVisibleCore ( bool visible ) : void

Adjusts the size of the owner T:System.Windows.Forms.ToolStrip to accommodate the T:System.Windows.Forms.ToolStripDropDown if the owner T:System.Windows.Forms.ToolStrip is currently displayed, or clears and resets active T:System.Windows.Forms.ToolStripDropDown child controls of the T:System.Windows.Forms.ToolStrip if the T:System.Windows.Forms.ToolStrip is not currently displayed.

UpdateRegion ( ) : void

Updates the pop-up region.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InternalProcessResizing ( Message &m, bool contentControl ) : bool
OnGetMinMaxInfo ( Message &m ) : bool
OnNcHitTest ( Message &m, bool contentControl ) : bool
ProcessResizing ( Message &m ) : bool
SetOwnerItem ( Control control ) : void
WndProc ( Message &m ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

OnClosed() protected method

protected OnClosed ( ToolStripDropDownClosedEventArgs e ) : void
e ToolStripDropDownClosedEventArgs
return void

OnOpened() protected method

Raises the E:System.Windows.Forms.ToolStripDropDown.Opened event.
protected OnOpened ( EventArgs e ) : void
e EventArgs An that contains the event data.
return void

OnOpening() protected method

Raises the E:System.Windows.Forms.ToolStripDropDown.Opening event.
protected OnOpening ( CancelEventArgs e ) : void
e CancelEventArgs A that contains the event data.
return void

OnSizeChanged() protected method

Raises the E:System.Windows.Forms.Control.SizeChanged event.
protected OnSizeChanged ( EventArgs e ) : void
e EventArgs An that contains the event data.
return void

OnVisibleChanged() protected method

protected OnVisibleChanged ( EventArgs e ) : void
e EventArgs
return void

PaintSizeGrip() public method

Paints the size grip.
public PaintSizeGrip ( PaintEventArgs e ) : void
e PaintEventArgs The instance containing the event data.
return void

Popup() public method

Initializes a new instance of the PopupControl.Popup class.
Pop-up will be disposed immediately after disposion of the content control.
is null.
public Popup ( Control content ) : System
content Control The content of the pop-up.
return System

ProcessDialogKey() protected method

Processes a dialog box key.
protected ProcessDialogKey ( Keys keyData ) : bool
keyData Keys One of the values that represents the key to process.
return bool

SetVisibleCore() protected method

Adjusts the size of the owner T:System.Windows.Forms.ToolStrip to accommodate the T:System.Windows.Forms.ToolStripDropDown if the owner T:System.Windows.Forms.ToolStrip is currently displayed, or clears and resets active T:System.Windows.Forms.ToolStripDropDown child controls of the T:System.Windows.Forms.ToolStrip if the T:System.Windows.Forms.ToolStrip is not currently displayed.
protected SetVisibleCore ( bool visible ) : void
visible bool true if the owner is currently displayed; otherwise, false.
return void

Show() public method

Shows pop-up window below the specified control.
When there is no space below the specified control, the pop-up control is shown above it.
is null.
public Show ( Control control ) : void
control Control The control below which the pop-up will be shown.
return void

Show() public method

Shows pop-up window below the specified area of specified control.
When there is no space below specified area, the pop-up control is shown above it.
is null.
public Show ( Control control, Rectangle area ) : void
control Control The control used to compute screen location of specified area.
area Rectangle The area of control below which the pop-up will be shown.
return void

UpdateRegion() protected method

Updates the pop-up region.
protected UpdateRegion ( ) : void
return void

Property Details

LastClosedTimeStamp public property

public DateTime LastClosedTimeStamp
return DateTime