|
20 | 20 | ([parent Any] [width Integer] [label String])
|
21 | 21 | ([show (Any -> Void)])))
|
22 | 22 | (dt Text-Field% (Class ()
|
23 |
| - ([parent Any] [callback Any] [label String]) |
24 |
| - ([get-value (-> String)] |
25 |
| - [focus (-> Void)]))) |
| 23 | + ([parent (Instance Dialog%)] |
| 24 | + [callback (Any Any -> Any)] |
| 25 | + [label String]) |
| 26 | + ([get-value (-> String)] |
| 27 | + [focus (-> Void)]))) |
26 | 28 | (dt Horizontal-Panel% (Class ()
|
27 |
| - ([parent Any] |
| 29 | + ([parent (Instance Dialog%)] |
28 | 30 | [stretchable-height Any #t]
|
29 | 31 | [alignment (List Symbol Symbol) #t])
|
30 | 32 | ()))
|
31 | 33 | (dt Choice% (Class ()
|
32 |
| - ([parent Any] [label String] [choices (Listof Any)] [callback Any]) |
| 34 | + ([parent (Instance Horizontal-Panel%)] [label String] [choices (Listof Any)] [callback (Any Any -> Any)]) |
33 | 35 | ([get-selection (-> (Option Natural))]
|
34 | 36 | [set-selection (Integer -> Any)]
|
35 | 37 | [get-string-selection (-> (Option String))]
|
36 | 38 | [set-string-selection (String -> Void)])))
|
37 | 39 | (dt Message% (Class ()
|
38 |
| - ([parent Any] [label String]) |
| 40 | + ([parent (Instance Horizontal-Panel%)] [label String]) |
39 | 41 | ([set-label ((U String (Instance Bitmap%)) -> Void)])))
|
40 | 42 | (dt Horizontal-Pane% (Class ()
|
41 |
| - ([parent Any]) |
| 43 | + ([parent (Instance Horizontal-Panel%)]) |
42 | 44 | ()))
|
43 | 45 | (dt Editor-Canvas% (Class ()
|
44 |
| - ([parent Any] [editor Any]) |
| 46 | + ([parent (Instance Dialog%)] [editor (Instance Text:Basic%)]) |
45 | 47 | ([set-line-count ((U #f Integer) -> Void)])))
|
46 | 48 | (dt Bitmap-DC% (Class ((Instance Bitmap%))
|
47 | 49 | ()
|
|
55 | 57 |
|
56 | 58 | (dt Snip% (Class () () ([get-count (-> Integer)])))
|
57 | 59 |
|
| 60 | +(dt Text:Basic% (Class () |
| 61 | + () |
| 62 | + ([begin-edit-sequence (-> Void)] |
| 63 | + [end-edit-sequence (-> Void)] |
| 64 | + [lock (Boolean -> Void)] |
| 65 | + [last-position (-> Number)] |
| 66 | + [last-paragraph (-> Exact-Nonnegative-Integer)] |
| 67 | + [delete (Number Number -> Void)] |
| 68 | + [auto-wrap (Any -> Void)] |
| 69 | + [paragraph-end-position (Number -> Integer)] |
| 70 | + [paragraph-start-position (Number -> Integer)] |
| 71 | + [get-start-position (-> Integer)] |
| 72 | + [get-end-position (-> Integer)] |
| 73 | + [get-text (Integer (U Integer 'eof) -> String)] |
| 74 | + [insert (String Number Number -> Void)]))) |
| 75 | + |
58 | 76 | (dt Text% (Class ()
|
59 | 77 | ()
|
60 | 78 | ([begin-edit-sequence (-> Void)]
|
|
0 commit comments