use 'system-position-ok-before-cancel?' in GUI overview example
svn: r13067 original commit: 9a177b251e71fb66003a314f9c9466560f72c0ce
This commit is contained in:
parent
c2e68cba46
commit
368e8a7bf4
|
@ -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?]{
|
void?]{
|
||||||
|
|
||||||
Takes a filter procedure and changes the container's list of
|
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})
|
(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 "Cancel"])
|
||||||
(new button% [parent panel] [label "Ok"])
|
(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})
|
(code:comment #, @t{Show the dialog})
|
||||||
(send dialog #,(:: dialog% show) #t)
|
(send dialog #,(:: dialog% show) #t)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user