Package | com.ghostwire.ui.core |
Class | public class uiFocusRect |
Inheritance | uiFocusRect ![]() ![]() |
uiFocusRect
is used to draw a rectangle around the currently focused object. This class is
used internally by Aspire UI - you should not need to instantiate this class in your application code.
If you want to change the look of the focus rectangle universally throughout your application, you should change the bitmap image uiFocusRect.png in your skins folder (you may need to change the entry in the rules.xml file as well).
If you want a different look for the focus rectangle of only a particular control in your application,
you should create a separate PNG image and set the control's focusRect
property to a
String
value indicating that image (omitting the .png extension). The PNG image must be
defined in the "rules.xml" file in the theme folder (where the PNG image file is stored).
For example, the following will use FocusRectWhite.png instead of FocusRect.png when rendering the
focus rectangle on the myBlackPushButton
control:
myBlackPushButton.focusRect = "FocusRectWhite";
~ This class is available in Aspire UI Components Lite Edition ~
Method | Defined by | ||
---|---|---|---|
uiFocusRect(assetName:String = "FocusRect")
Constructor - creates a new
uiFocusRect instance. | uiFocusRect |
uiFocusRect | () | constructor |
public function uiFocusRect(assetName:String = "FocusRect")
Constructor - creates a new uiFocusRect
instance.
assetName:String (default = "FocusRect ") — [Optional] A String value indicating the name of the bitmap image to load (omit
the .png extension).
|