Label also receives enter and leave events. Label can contain either text or a pixmap. Label text is a compound string. When a Label is insensitive, its text is stippled, or the user-supplied insensitive pixmap is displayed. Label supports both accelerators and mnemonics primarily for use in Label subclass widgets that are contained in menus.
Mnemonics are available in a menu system when the button is visible.
Accelerators in a menu system are accessible even when the button is not visible. The Label widget displays the mnemonic by underlining the first matching character in the text string. The accelerator is displayed as a text string adjacent to the label text or pixmap. Label consists of many margin fields surrounding the text or pixmap. These margin fields are resources that may be set by the user, but Label subclasses and Manager parents also modify some of these fields.