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


next up previous contents index
Next: widgetserver.helpmenu - Function Up: widgetserver - Tool Previous: widgetserver.unsetmode - Function


widgetserver.resources - Function



Package display
Module widgets
Tool widgetserver


Query what resources are used by various widgets


Synopsis
resources(widget, type)


Arguments

widget Which widget to query
Allowed: String from 'button', 'optionmenu', etc
type Subtype of button widgets
Allowed: String from 'plain', 'check', 'radio', 'menu', 'action', 'halt', 'dismiss'
Default: F


Description
This function is provided so that programmers can find out what relief, font and foreground and background colors are used by the various widgets that the widgetserver delivers. Generally, just the name of the widget needs to be supplied as a string argument. In the special case of 'button' widgets, an additional argument is given so that the type of the button can be specified. The function returns a record whose fields (upto four of them) contain the resources used by the widget.



Example
rec := dws.resources('button', 'action');
print rec.background;





next up previous contents index
Next: widgetserver.helpmenu - Function Up: widgetserver - Tool Previous: widgetserver.unsetmode - Function   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