Package com.ms.awt Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

Class CaretX

Constructors , Methods

public class CaretX 
{
	// Constructors
	public CaretX(Component c, int w, int h);

	// Methods
	public void finalize();
	public void show();
	public void hide();
	public void setPos(Point p);
	public void setPos(int px, int py);
}

The CaretX class creates a text caret (a flashing block) for the given component. The caret has a settable width and height, can be displayed at a given point, and temporarily hidden and shown as needed.


Constructors


CaretX

public CaretX(Component c, int w, int h)

Creates a text caret for the given component.

ParameterDescription
c The component.
w Width of the caret.
h Height of the caret.


Methods


finalize

public void finalize()

Removes and deletes a caret.

Return Value:

No return value.


show

public void show()

Shows the caret.

Return Value:

No return value.


hide

public void hide()

Hides the caret.

Return Value:

No return value.


setPos

public void setPos(Point p)

Sets the caret position to the coordinates of the given point.

Return Value:

No return value.

ParameterDescription
p The point.


setPos

public void setPos(int px, int py)

Sets the caret position to the given coordinates.

Return Value:

No return value.

ParameterDescription
px The x-coordinate.
py The y-coordinate.



Top© 1996 Microsoft Corporation. All rights reserved.