drscheme:unit:make-bitmap in DrScheme Tools Functions
(drscheme:unit:make-bitmap -> ((is-a?/c button-name)area-container<%>) . -> . (union string? (is-a?/c bitmap%)))
button-name : string?
(drscheme:unit:make-bitmap -> ((is-a?/c text filename)area-container<%>) . -> . (union string? (is-a?/c bitmap%)))
text : string?
filename : string?
This function constructs a bitmap for a button label. It is used for the buttons on the top row of DrScheme's frame.
When one argument is supplied, this function
constructs a button from the image in the icons
collection named by the button-name with .bmp
added to the end of the name.
The button's label is also button-name,
but with the first letter capitalized.
When two arguments are supplied, constructs a button with
text as the button's label and where filename
specifies the full path to the bitmap
The area-container<%> argument is used to
find the font for the label
If the bitmap isn't found, this function returns a string to be used as the button's label.