Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Did some debugging on stroke displat for the "text" function -Revised the table use of text (previously, it had a with statement that applied color and font. This works now, thanks to the debugging above, but text already provides hooks for both of those things)
- Loading branch information
ingram
committed
Sep 8, 2010
1 parent
c9f016e
commit ce3d4a6
Showing
3 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#lang scheme | ||
(require "main.ss" | ||
"syntax.ss" | ||
"primitives.ss") | ||
|
||
(define (text-field point label #:font (a-font (font "Helvetica" 14)) #:width (width #f) #:height (height 20)) | ||
(with (translate (car point) (cdr point)) | ||
(stroke (rect '(0 . 0) width height)) | ||
(with a-font (color "666666") | ||
(text '(3 . 3) label)))) | ||
|
||
(provide (all-defined-out)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters