PyCStatusBarCtrl.SetTipText

SetTipText(nPane, text)

Sets the tooltip text for a pane in a status bar. The status bar must have been created with the afxres.SBT_TOOLTIPS control style to enable ToolTips.

Parameters

nPane : int

The zero-based index of status bar pane to receive the tooltip text.

text : string

The string containing the tooltip text.

Comments

Pay attention, this tooltip text is ONLY displayed in two situations:
1. When the corresponding pane in the status bar contains only an icon.
2. When the corresponding pane in the status bar contains text that is truncated due to the size of the pane.
To make the tooltip appear even if the text is not truncated, you could add additional spaces to the end of the pane text.

MFC References

CStatusBarCtrl::SetTipText