changed the 'cancel' button to say something more accurate

closes PR 11473
This commit is contained in:
Robby Findler 2010-12-08 21:26:35 -06:00
parent a7ef05d749
commit 81de0c1337
3 changed files with 5 additions and 2 deletions

View File

@ -761,7 +761,7 @@
(let-values ([(cw _4) (get-client-size)]
[(tw _1 _2 _3) (send dc get-text-extent str normal-control-font)])
(when (< cw tw)
(min-client-width (inexact->exact (floor tw)))))))
(min-client-width (inexact->exact (ceiling tw)))))))
(define/override (on-paint)
(let ([dc (get-dc)])
(send dc set-font normal-control-font)

View File

@ -295,7 +295,9 @@ the state transitions / contracts are:
(gui-utils:ok/cancel-buttons
bottom-panel
ok-callback
(λ (a b) (cancel-callback)))
(λ (a b) (cancel-callback))
(string-constant ok)
(string-constant undo-changes))
(make-object grow-box-spacer-pane% bottom-panel)
(send* bottom-panel
(stretchable-height #f)

View File

@ -455,6 +455,7 @@ please adhere to these guidelines:
(default-text-color "Default text") ;; used for configuring colors, but doesn't need the word "color"
(choose-a-background-color "Please choose a background color")
(revert-to-defaults "Revert to Defaults")
(undo-changes "Undo Changes and Close") ;; used in the preferences dialog to undo preference changes
(black-on-white-color-scheme "Black on White") ;; these two appear in the color preferences dialog on butttons
(white-on-black-color-scheme "White on Black") ;; clicking the buttons changes the color schemes to some defaults that've been set up.