.
original commit: 1b89d3da4b7b0f9b96855b62c8c908b3b6001106
This commit is contained in:
parent
7d23785574
commit
f9c6625eaa
|
@ -148,7 +148,7 @@
|
|||
(send c set-editor e)
|
||||
|
||||
(when file
|
||||
(if (regexp-match "[.]((gif)|(bmp)|(jpg)|(xbm)|(xpm))$" file)
|
||||
(if (regexp-match "[.](gif|bmp|jpe?g|xbm|xpm|png)$" file)
|
||||
(send e insert (make-object image-snip% file))
|
||||
(send e load-file file)))
|
||||
|
||||
|
|
|
@ -4538,7 +4538,9 @@
|
|||
(define basic-list-control%
|
||||
(class100* basic-control% (list-control<%>) (mk-wx mismatches label parent selection callback)
|
||||
(public
|
||||
[append (entry-point (lambda (i) (send wx append i)))]
|
||||
[append (entry-point (lambda (i)
|
||||
(check-label-string '(method list-control<%> append) i)
|
||||
(send wx append i)))]
|
||||
[clear (entry-point (lambda () (send wx clear)))]
|
||||
[get-number (entry-point (lambda () (send wx number)))]
|
||||
[get-string (entry-point (lambda (n) (check-item 'get-string n) (send wx get-string n)))]
|
||||
|
@ -4619,8 +4621,12 @@
|
|||
(override
|
||||
[append (entry-point
|
||||
(case-lambda
|
||||
[(i) (super-append i)]
|
||||
[(i d) (send wx append i d)]))])
|
||||
[(i)
|
||||
(check-label-string '(method list-control<%> append) i)
|
||||
(super-append i)]
|
||||
[(i d)
|
||||
(check-label-string '(method list-control<%> append) i)
|
||||
(send wx append i d)]))])
|
||||
(public
|
||||
[delete (entry-point (lambda (n) (check-item 'delete n) (send wx delete n)))]
|
||||
[get-data (entry-point (lambda (n) (check-item 'get-data n) (send wx get-data n)))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user