Java example boxes: omit cue text from save-and-loaded or cut-and-paste boxes

svn: r1850

original commit: f81cf986b52576551aa934feff8eb584dc908857
This commit is contained in:
Matthew Flatt 2006-01-17 20:35:57 +00:00
parent 9f0d6ddf3f
commit d47712f2f5
2 changed files with 5 additions and 1 deletions

View File

@ -324,6 +324,10 @@ _cue-text%_ is (cue-text-mixin text%)
color : string = "gray"
behavior : (listof (symbols 'on-focus 'on-char)) = '(on-focus)
> (send a-cue-text clear-cue-text)
Clears the cue text, if it's still present.
============================================================
The following functions are useful for working with snips

View File

@ -28,7 +28,7 @@
#;(-> void)
;; Clears the cue-text if it's still there.
(define (clear-cue-text)
(define/public (clear-cue-text)
(when first-focus?
(set! first-focus? false)
(erase)