Packages
 In this topic

*Constructors

*Methods

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.ui   Previous This
Package
Next

 


Class UIScrollThumb

public class UIScrollThumb extends UIThumb
{
  // Fields
  public static final int THICK;

  // Constructors
  public UIScrollThumb();
  public UIScrollThumb(IUIComponent comp);

  // Methods
  public Insets getInsets();
  public int getStyle();
  public void paint(FxGraphics g);
  public void setStyle(int style);
}

This class implements a scroll thumb control. UIScrollThumb is used by UIScroll and UIScrollBar, and responds to various mouse events.

UIComponent
  |
  +--UIContainer
    |
    +--UIStateContainer
      |
      +--UISingleContainer
        |
        +--UIThumb
          |
          +--UIScrollThumb

Constructors

UIScrollThumb

public UIScrollThumb();

Creates a scroll thumb control with no content.

UIScrollThumb

public UIScrollThumb(IUIComponent comp);

Creates a scroll thumb control using the specified component for content.

ParameterDescription
comp The component to be displayed within the control.

Methods

getInsets

public Insets getInsets();

Retrieves the scroll thumb control's insets (in pixels), which identify the nonclient area of the control.

Return Value:

Returns an Insets object containing the scroll thumb's insets.

Remarks:

By default, all insets are 2 pixels each.

getStyle

public int getStyle();

Retrieves the thumb's current style settings.

Return Value:

Returns an integer containing the current style settings.

See Also: setStyle

paint

public void paint(FxGraphics g);

Draws the scroll thumb control.

Return Value:

No return value.

ParameterDescription
g The graphics context.

setStyle

public void setStyle(int style);

Sets the current style for the thumb.

Return Value:

No return value.

ParameterDescription
style The style of the thumb. You can pass THICK to specify a thick border around the thumb.

Exceptions:

IllegalArgumentException if an undefined style was specified.

Fields

THICK
Specifies that the thumb has a thick edge.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.