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

Class ChooseFont

Constructor , Methods

public class ChooseFont extends Dialog {
	// Constructor
	public ChooseFont(Container parent);

	// Methods
	public FontX getChosenFont();
	public boolean handleEvent(Event event);
}

Displays a dialog box from which the user can choose a font from the current system selection.


Constructor


ChooseFont

public ChooseFont(Container parent)

Creates the ChooseFont dialog box.

ParameterDescription
parent Parent container.

See Also: Container


Methods


getChosenFont

public FontX getChosenFont()

Retrieves the selected font. If the user canceled the dialog box (by pressing the Cancel button), the font returned is null.

Return Value:

Returns the selected font.

See Also: FontX


handleEvent

public boolean handleEvent(Event event)

This method is called when any event occurs inside the ChooseFont dialog box.

Return Value:

Returns true if the action triggered by the event has completed successfully, or false if it should be passed to the component's parent.

ParameterDescription
event Event inside the ChooseFont dialog box.

Remarks:

Overrides handleEvent in class Component.

See Also: Event



Top© 1997 Microsoft Corporation. All rights reserved. Terms of Use.