Used to create and manage buttons in a user interface.
This class includes functionality to create buttons in a user
interface and add a callback. In MotionBuilder, buttons are created
within regions, which are in turn created in layouts with FBLayout. For usage, see
the Python sample Button.py. See also: FBButtonStyle, FBTextJustify, FBButtonLook.
- Examples
- UI/Button.py,
UI/Popup.py, UI/RadioButton.py
Public Member Functions
|
| |
__init__ () |
| |
Constructor.
|
| FBColor |
GetStateColor (FBButtonState
pState) |
| |
Queries the color associated with a button
state.
|
| |
SetStateColor (FBButtonState pState,
FBColor
pColor) |
| |
Returns whether or not the item
pIndex is currently selected.
|
| |
SetImageFileNames (str
pUpImage, str pDownImage=0,
str pThirdImage=0) |
| |
Sets the image used to generate a
kFBBitmap2States.
|
| |
HookToButton (FBButton pButton) |
| |
Sets a link to another button.
|
Public Attributes
|
|
FBPropertyBase |
State |
| |
Read Write Property: Current state of
button.
|
|
FBPropertyButtonStyle |
Style |
| |
Read Write Property: Button style.
|
|
FBPropertyTextJustify |
Justify |
| |
Read Write Property: Current state of
button.
|
|
FBPropertyButtonLook |
Look |
| |
Read Write Property: Current state of
button.
|
|
FBPropertyEvent |
OnClick |
| |
Event: Button clicked.
|
|
FBPropertyEvent |
OnDragAndDrop |
| |
Event: Something was dragged.
|