use 'system-position-ok-before-cancel?' in GUI overview example
svn: r13067
This commit is contained in:
parent
72b272ebd0
commit
9a177b251e
|
@ -71,7 +71,8 @@ Gets or sets the border margin for the container in pixels. This
|
|||
}
|
||||
|
||||
|
||||
@defmethod[(change-children [filter ((listof (is-a?/c subarea<%>)) . -> . (listof (is-a?/c subarea<%>)))])
|
||||
@defmethod[(change-children [filter ((listof (is-a?/c subarea<%>))
|
||||
. -> . (listof (is-a?/c subarea<%>)))])
|
||||
void?]{
|
||||
|
||||
Takes a filter procedure and changes the container's list of
|
||||
|
|
|
@ -357,6 +357,8 @@ with the following program:
|
|||
(code:comment #, @t{Add @onscreen{Cancel} and @onscreen{Ok} buttons to the horizontal panel})
|
||||
(new button% [parent panel] [label "Cancel"])
|
||||
(new button% [parent panel] [label "Ok"])
|
||||
(when (system-position-ok-before-cancel?)
|
||||
(send panel #,(:: area-container<%> change-children) reverse))
|
||||
|
||||
(code:comment #, @t{Show the dialog})
|
||||
(send dialog #,(:: dialog% show) #t)
|
||||
|
|
Loading…
Reference in New Issue
Block a user