Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: gchooser - Tool Up: fontchooserwidget - Tool Previous: fontchooserwidget - Tool


fontchooserwidget - Constructor



Package display
Module widgets
Tool fontchooserwidget


Construct a fontchooserwidget


Synopsis
fontchooserwidget(parent, font, widgetset)


Arguments

parent Parent of the menu
Allowed: Tk frame
Default: F
font Font of text
Allowed: X font
Default: F
widgetset Widget set to use
Allowed: A widgetserver closure tool
Default: dws


Returns
fontchooserwidget widget


Description
Constructs a fontchooserwidget according to the specified construction arguments, and returns a subsequence to the widget. Remember to use the fontchooserwidget via the widgetserver if at all possible.

You may send the fontchooserwidget 3 events

1.
reset cause the fontchooser to selected it's initial font.
2.
map causes the fontchooser to become visible if not already.
3.
unmap causes the fontchooser to become invisible if not already.
The fontchooser widget sends one event
1.
newfont who's values is the font description string selected by the user.



Example
include 'fontchooserwidget.g'   
f := dws.frame();
myfont :=  '-adobe-courier-medium-r-normal--14-*'
fc := fontchooserwidget(f, myfont);
whenever fc->newvalue do {
  print 'font selected is ', $value;
}








next up previous contents index
Next: gchooser - Tool Up: fontchooserwidget - Tool Previous: fontchooserwidget - Tool   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15