racket/collects/scribblings/tools/module-language-tools.scrbl

21 lines
895 B
Racket

#lang scribble/doc
@(require "common.rkt")
@(tools-title "module-language-tools")
If the result of @scheme[read-language] for a language is a function,
DrRacket will query it to determine if there are any new toolbar
buttons to be used when editing files in this language (when
DrRacket's language is set to the Module language).
Specifically, DrRacket will pass @indexed-scheme['drscheme:toolbar-buttons]
to the function and expect back a value matching this contract:
@schemeblock[(listof (list/c string?
(is-a?/c bitmap%)
(-> (is-a?/c drracket:unit:frame<%>) any)))]
which is then used to create new toolbar buttons, one for each list in the
first. The string is the label on the button; the bitmap is the icon (it should be 16x16),
and the function is called when the button is clicked.
@(tools-include "module-language-tools")