MCPcopy
hub / github.com/lxn/walk / SetToolTipText

Method SetToolTipText

widget.go:405–415  ·  view source on GitHub ↗

SetToolTipText sets the tool tip text of the WidgetBase.

(s string)

Source from the content-addressed store, hash-verified

403
404// SetToolTipText sets the tool tip text of the WidgetBase.
405func (wb *WidgetBase) SetToolTipText(s string) error {
406 if tt := wb.group.ToolTip(); tt != nil {
407 if err := tt.SetText(wb.window.(Widget), s); err != nil {
408 return err
409 }
410 }
411
412 wb.toolTipTextChangedPublisher.Publish()
413
414 return nil
415}
416
417// GraphicsEffects returns a list of WidgetGraphicsEffects that are applied to the WidgetBase.
418func (wb *WidgetBase) GraphicsEffects() *WidgetGraphicsEffectList {

Callers

nothing calls this directly

Calls 3

ToolTipMethod · 0.45
SetTextMethod · 0.45
PublishMethod · 0.45

Tested by

no test coverage detected