[plt-scheme] Styling MrEd GUI components

From: Ben Simon (benjisimon at gmail.com)
Date: Sun Mar 30 00:49:16 EDT 2008

On Mon, Mar 10, 2008 at 9:22 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> At Sun, 9 Mar 2008 23:45:03 -0400, "Ben Simon" wrote:
> > How do I style MrEd components? That is, how could I make a button red,
> or a
> > border green?  I see where I can make use of different fonts, but that's
> > about all I see in terms of controlling the Look & Feel of the
> components.
> [...useful comments trimmed]
>


>
> More generally, you can derive a sub-class of `canvas%' and draw
> anything as a control.
>

There doesn't happen to be a way to use this approach, and somehow embed a
container like a vertical-panel% in the resulting canvas%, is there?

The idea being that I might make a component that uses a canvas to draw a
green border, and then embed other GUI components (say, a series of buttons)
in this newly drawn area.

I've poked around the docs and don't see a way to do it, but I thought I
should get confirmation from the pros.

-Ben


-- 
Have an idea for software? I can make it happen -
http://www.ideas2executables.com
My Blog: http://benjisimon.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080330/0c0e2d4d/attachment.html>

Posted on the users mailing list.