C# Class Bloom.ToPalaso.BetterToolTip

Inheritance: System.Windows.Forms.ToolTip
Show file Open project: BloomBooks/BloomDesktop

Public Methods

Method Description
ApplyLocalizationToString ( object control, string id, string localization ) : void

L10NSharp will call this for each localized string so that the component can set the correct value in the control.

BetterToolTip ( IContainer container ) : System
GetAllLocalizingInfoObjects ( L10NSharpExtender extender ) : IEnumerable

Allows the BetterToolTip to give L10NSharp the information it needs to put strings into the localization UI to be localized.

SetSizeOfToolTipWhenDisabled ( Control control, Size value ) : void
SetToolTip ( Control control, string value ) : void
SetToolTipWhenDisabled ( Control control, string value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
EnhancedToolTip_Popup ( object sender, System.Windows.Forms.PopupEventArgs e ) : void
GetSizeOfToolTipWhenDisabled ( Control control ) : Size
GetToolTipWhenDisabled ( Control control ) : string
PutOnBetterTooltipTransparentOverlay ( Control control ) : void
TakeOffBetterTooltipTransparentOverlay ( Control control ) : void
UpdateAllControlsList ( Control control, string value ) : void
control_EnabledChanged ( object sender, EventArgs e ) : void
control_Paint ( object sender, PaintEventArgs e ) : void

Method Details

ApplyLocalizationToString() public method

L10NSharp will call this for each localized string so that the component can set the correct value in the control.
public ApplyLocalizationToString ( object control, string id, string localization ) : void
control object The control that was returned via the LocalizingInfo in /// GetAllLocalizingInfoObjects(). Will be null if that value was null.
id string a key into the ILocalizableComponent allowing it to know what /// string to localize
localization string the actual localized string
return void

BetterToolTip() public method

public BetterToolTip ( IContainer container ) : System
container IContainer
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAllLocalizingInfoObjects() public method

Allows the BetterToolTip to give L10NSharp the information it needs to put strings into the localization UI to be localized.
public GetAllLocalizingInfoObjects ( L10NSharpExtender extender ) : IEnumerable
extender L10NSharpExtender
return IEnumerable

SetSizeOfToolTipWhenDisabled() public method

public SetSizeOfToolTipWhenDisabled ( Control control, Size value ) : void
control System.Windows.Forms.Control
value System.Drawing.Size
return void

SetToolTip() public method

public SetToolTip ( Control control, string value ) : void
control System.Windows.Forms.Control
value string
return void

SetToolTipWhenDisabled() public method

public SetToolTipWhenDisabled ( Control control, string value ) : void
control System.Windows.Forms.Control
value string
return void