| Package com.ms.awt |
Previous |
Microsoft Packages |
Index |
Next |
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);
}
This class creates a text caret (a flashing block) for the given component. The caret's width and height values can be set. Also, the caret can be displayed at a given point, and can temporarily be hidden or shown as needed.
public CaretX(Component c, int w, int h)Creates a text caret for the given component.
Parameter Description c Component that the caret is being created for. w Width of the caret. h Height of the caret.
public void finalize()Removes and deletes a caret.
Return Value:
No return value.
public void show()Shows the caret.
Return Value:
No return value.
public void hide()Hides the caret.
Return Value:
No return value.
public void setPos(Point p)Sets the caret position to the coordinates of the given point.
Return Value:
No return value.
Parameter Description p Point at which the caret will be set.
public void setPos(int px, int py)Sets the caret position to the given coordinates.
Return Value:
No return value.
Parameter Description px X-coordinate. py Y-coordinate.
| © 1997 Microsoft Corporation. All rights reserved. Terms of Use. |