[plt-scheme] make a button

From: Robert Bruce Findler (robby at cs.uchicago.edu)
Date: Thu Dec 12 14:12:09 EST 2002

See the definition of make-bitmap in
plt/collects/drscheme/private/unit.ss.

Robby

At Thu, 12 Dec 2002 20:09:54 +0100, "Nicolas Chevallier" wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> I search the file where the DrScheme bitmap button are created, but i can't
> find it.
> Can you help me?
> 
> 
> Nicolas
> 
> > ----- Original Message -----
> > From: "Matthew Flatt" <mflatt at cs.utah.edu>
> > To: "Roland-APPIETTO" <Roland-APPIETTO at wanadoo.fr>
> > Cc: <plt-scheme at list.cs.brown.edu>
> > Sent: Monday, November 11, 2002 5:59 PM
> > Subject: Re: [plt-scheme] make a button
> >
> >
> > >   For list-related administrative tasks:
> > >   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> > >
> > > At Fri, 8 Nov 2002 12:02:18 +0100, "Roland-APPIETTO" wrote:
> > > > I'd like to know, how can i make a Drscheme BUTTON like the Execute
> > > > button (a bitmap and a label)??
> > >
> > > The DrScheme button uses a bitmap. The text is combined with an image
> > > byt drawing into an offscreen bitmap (i.e., a `draw-bitmap' followed by
> > > a `draw-text').
> > >
> > > To get the font for drawing the label, the best strategy is to use the
> > > parent window's `get-control-font' method.
> > >
> > > Matthew
> > >
> >



Posted on the users mailing list.