s c h e m a t i c s : c o o k b o o k

/ GUIChapterComments / Cookbook.SimpleCanvasOperations

This Web


WebHome 
WebChanges 
TOC (with recipes)
NewRecipe 
WebTopicList 
WebStatistics 

Other Webs


Chicken
Cookbook
Erlang
Know
Main
Plugins
Sandbox
Scm
TWiki  

Schematics


Schematics Home
Sourceforge Page
SchemeWiki.org
Original Cookbook
RSS

Scheme Links


Schemers.org
Scheme FAQ
R5RS
SRFIs
Scheme Cross Reference
PLT Scheme SISC
Scheme48 SCM
MIT Scheme scsh
JScheme Kawa
Chicken Guile
Bigloo Tiny
Gambit LispMe
GaucheChez

Lambda the Ultimate
TWiki.org

Simple Canvas operations

Problem

You want to operate on and interact with a drawing canvas.

Solution

See also ''PLT MrEd: Graphical Toolbox Manual Chapter 5 Drawing Toolbox Overview''

Here is a simple example of;

  1. putting an image on a canvas
  2. getting a mouseclick
  3. getting the colour of the canvas at the point of the click.

I put it here because, while there are good examples in the MrEd (gui) manual, this is one that isn't covered.

Use DrScheme language MrEd

500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)


Comments about this recipe

Thanks to Matthias Felleisen for posting this on the PLT list in response to a query.

-- StephenDeGabrielle - 19 Dec 2007

Contributors

-- StephenDeGabrielle - 19 Dec 2007

CookbookForm
TopicType: Recipe
ParentTopic: GUIRecipes
TopicOrder: 002

 
 
Copyright © 2004 by the contributing authors. All material on the Schematics Cookbook web site is the property of the contributing authors.
The copyright for certain compilations of material taken from this website is held by the SchematicsEditorsGroup - see ContributorAgreement & LGPL.
Other than such compilations, this material can be redistributed and/or modified under the terms of the GNU Lesser General Public License (LGPL), version 2.1, as published by the Free Software Foundation.
Ideas, requests, problems regarding Schematics Cookbook? Send feedback.
/ You are Main.guest