changed the 'cancel' button to say something more accurate
closes PR 11473
This commit is contained in:
parent
a7ef05d749
commit
81de0c1337
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user