![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() | |
![]()
|
|
|||||||||||||
Buttons Sample AppletThis sample shows the full complement of buttons supported by AFC.
DescriptionThe panel above is comprised of three UIGroup controls. The first contains a display area showing a graphic of the Earth in space and an area for the display of different button types. The second contains radio button and check box listed options for selecting different button types. The third contains status information that describes the buttons that are selected. The UIPushButton option is checked by default, and a large button is displayed using an FxTexture as its background and a UIItem left-centered. As you press the button, the small globe turns on a background, using an FxTexture to indicated that an action Event has occurred. Unchecking the RAISED option gives the button a flat look. If the mouse is passed over it or it receives focus, it pops up and becomes 3D, indicating that focus has been received and the button can be clicked. Unchecking the THICK option replaces the default 2-pixel-wide with a border in the Microsoft® Windows® style that has a single-pixel border. Unchecking and checking the TOGGLE option changes the style of the button to allow both the checked and unchecked states. For example, if the TOGGLE option is checked, the button will stay depressed when clicked until it is clicked again; if TOGGLE is unchecked, the button will return to its original state after being clicked. If you then select UICheckButton, a custom button appears. You can turn the custom look off and return to the standard Microsoft® Win32® check button by unchecking the Custom checkbox. Again, as the custom button is clicked, the globe turns to indicate an action Event has occurred, and the button cycles through its three separate TRITOGGLE states: unchecked, checked and indeterminate. Deselecting the TRITOGGLE option limits the button to only checked and unchecked. Selecting the UIRadioButton option gives you a default custom button; deselecting Custom returns you to the standard Win32 radio button. When a custom button is not selected, the Disabled option is enabled, allowing the radio button to be shaded and therefore disabled. Selecting UIRepeatButton brings up a large button with a left-centered UIItem that indicates you should hold it down. If you do so, the button generates repeated action Events, which keep the globe turning smoothly. Again, if the Disabled option is selected, the button is shaded and therefore disabled. Note If you allow the mouse to hover over the UIRepeatButton or UIPushButton for a brief moment, ToolTips will appear. Buttons Sample SourcesThe Buttons Sample Applet consists of these sources:
|
![]() |