AFXFlyoutItem

This class contains a button that is placed in the popup menu of the flyout button.


AFXFlyoutItem(p, text, ic=None, tgt=None, sel=0, opts=ICON_ABOVE_TEXT| BUTTON_TOOLBAR| FRAME_RAISED| FRAME_THICK, x=0, y=0, w=0, h=0, pl=0, pr=0, pt=0, pb=0)

Constructor.

ArgumentTypeDefaultDescription
pFXComposite Parent widget.
textString Label string.
icFXIconNoneIcon.
tgtFXObjectNoneMessage target.
selInt0Message ID.
optsIntICON_ABOVE_TEXT| BUTTON_TOOLBAR| FRAME_RAISED| FRAME_THICKOptions and hints.
xInt0X coordinate of origin.
yInt0Y c coordinate of origin.
wInt0Width of the widget.
hInt0Height of the widget.
plInt0Left padding (margin).
prInt0Right padding (margin).
ptInt0Top padding (margin).
pbInt0Bottom padding (margin).


canFocus()

Returns True (because a flyout item can receive focus).

Reimplemented from FXButton.


hide()

Hides the flyout item.

Reimplemented from FXWindow.


setIcon(ic)

Sets the icon for the flyout item.

Reimplemented from FXLabel.

ArgumentTypeDefaultDescription
icFXIcon