C# Class SIL.FieldWorks.Common.Controls.FwPopup

Afficher le fichier Open project: sillsdev/FieldWorks

Protected Properties

Свойство Type Description
m_host ToolStripControlHost
m_monitorMouseOver bool
m_mouseOver bool
m_owningDropDown ToolStripDropDown
m_timer Timer

Private Properties

Свойство Type Description
InitializeTimer void
m_owningDropDown_Closed void
m_owningDropDown_Opened void
m_owningDropDown_Opening void
m_timer_Tick void

Méthodes publiques

Méthode Description
CheckDesiredPopupLocation ( Point ptDesired, bool &tooWide, bool &tooTall ) : void

Determines whether or not the popup's right or bottom edge will extend beyond the bounds of the screen if shown at the specified location.

FwPopup ( ) : System

Initializes a new instance of the T:FwPopup class.

Hide ( ) : void

Hides the popup.

Show ( Control ctrl, Point location ) : void

Shows the popup at the specified location (which is relative to ctrl) with the specified owning control.

Show ( Point screenLocation ) : void

Shows the popup at the specified screen location.

m_owningDropDown_VisibleChanged ( object sender, EventArgs e ) : void

Start and stop the timer when the owning drop-down's visibility changes.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosed ( ToolStripDropDownClosedEventArgs e ) : void

Handles the Closed event of the popup.

OnMouseEntered ( EventArgs e ) : void

Fires the mouse entered event.

OnMouseLeft ( EventArgs e ) : void

Fires the MouseLeft event.

OnOpened ( EventArgs e ) : void

Handles the Opened event of the popup.

OnOpening ( EventArgs e ) : void

Handles the Opening event of the popup.

OnSizeChanged ( EventArgs e ) : void

OnTimerTick ( ) : void

Fires when the timer Tick event occurs.

Private Methods

Méthode Description
InitializeTimer ( ) : void

m_owningDropDown_Closed ( object sender, ToolStripDropDownClosedEventArgs e ) : void

Handles the Closed event of the popup.

m_owningDropDown_Opened ( object sender, EventArgs e ) : void

Handles the Opened event of the popup.

m_owningDropDown_Opening ( object sender, CancelEventArgs e ) : void

Handles the Opening event of the m_owningDropDown control.

m_timer_Tick ( object sender, EventArgs e ) : void

Method Details

CheckDesiredPopupLocation() public méthode

Determines whether or not the popup's right or bottom edge will extend beyond the bounds of the screen if shown at the specified location.
public CheckDesiredPopupLocation ( Point ptDesired, bool &tooWide, bool &tooTall ) : void
ptDesired Point
tooWide bool
tooTall bool
Résultat void

Dispose() protected méthode

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

FwPopup() public méthode

Initializes a new instance of the T:FwPopup class.
public FwPopup ( ) : System
Résultat System

Hide() public méthode

Hides the popup.
public Hide ( ) : void
Résultat void

OnClosed() protected méthode

Handles the Closed event of the popup.
protected OnClosed ( ToolStripDropDownClosedEventArgs e ) : void
e ToolStripDropDownClosedEventArgs
Résultat void

OnMouseEntered() protected méthode

Fires the mouse entered event.
protected OnMouseEntered ( EventArgs e ) : void
e EventArgs
Résultat void

OnMouseLeft() protected méthode

Fires the MouseLeft event.
protected OnMouseLeft ( EventArgs e ) : void
e EventArgs
Résultat void

OnOpened() protected méthode

Handles the Opened event of the popup.
protected OnOpened ( EventArgs e ) : void
e EventArgs
Résultat void

OnOpening() protected méthode

Handles the Opening event of the popup.
protected OnOpening ( EventArgs e ) : void
e EventArgs
Résultat void

OnSizeChanged() protected méthode

protected OnSizeChanged ( EventArgs e ) : void
e EventArgs
Résultat void

OnTimerTick() protected méthode

Fires when the timer Tick event occurs.
protected OnTimerTick ( ) : void
Résultat void

Show() public méthode

Shows the popup at the specified location (which is relative to ctrl) with the specified owning control.
public Show ( Control ctrl, Point location ) : void
ctrl Control
location Point
Résultat void

Show() public méthode

Shows the popup at the specified screen location.
public Show ( Point screenLocation ) : void
screenLocation Point
Résultat void

m_owningDropDown_VisibleChanged() public méthode

Start and stop the timer when the owning drop-down's visibility changes.
public m_owningDropDown_VisibleChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

Property Details

m_host protected_oe property

host for this custom control
protected ToolStripControlHost m_host
Résultat ToolStripControlHost

m_monitorMouseOver protected_oe property

flag indicated whether the mouses movement should be monitored
protected bool m_monitorMouseOver
Résultat bool

m_mouseOver protected_oe property

flag whether the mouse is within the bounds of the popup
protected bool m_mouseOver
Résultat bool

m_owningDropDown protected_oe property

owns the host--drop down containing the host that hosts the custom control
protected ToolStripDropDown m_owningDropDown
Résultat ToolStripDropDown

m_timer protected_oe property

updates m_mouseOver when m_monitorMouseOver is true
protected Timer m_timer
Résultat Timer