Mercurial > hg > xemacs-beta
comparison tests/gutter-test.el @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 74fd4e045ea6 |
children | 42375619fa45 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
1 (setq str "Hello There\nHello Again") | 1 (setq str "Hello\nAgain") |
2 (setq str-ext (make-extent 0 5 str)) | |
2 (set-extent-begin-glyph | 3 (set-extent-begin-glyph |
3 (make-extent 0 0 str) | 4 str-ext |
4 (make-glyph [xpm :file "../etc/xemacs-icon.xpm"])) | 5 (make-glyph [xpm :file "../etc/xemacs-icon.xpm"])) |
6 (set-extent-property str-ext 'mouse-face 'highlight) | |
5 | 7 |
8 (setq str2 "Hello\n") | |
9 (setq str2-ext (make-extent 0 1 str2)) | |
6 (set-extent-begin-glyph | 10 (set-extent-begin-glyph |
7 (make-extent 3 3 str) | 11 str2-ext |
8 (make-glyph | 12 (make-glyph |
9 [button :width 5 :height 1 | 13 [button :width 5 :height 1 |
10 :face modeline-mousable | 14 :face modeline-mousable |
15 :callback (set-specifier bottom-gutter-visible-p '(str2)) | |
11 :descriptor "ok" :selected t])) | 16 :descriptor "ok" :selected t])) |
12 | 17 |
13 (set-specifier default-gutter-height 'autodetect) | 18 (set-specifier bottom-gutter-height 'autodetect) |
14 (set-specifier default-gutter-width 40) | 19 (set-specifier bottom-gutter-border-width 2) |
15 (set-specifier default-gutter-border-width 2) | 20 |
16 (set-specifier default-gutter str) | 21 (set-gutter-element |
17 (set-default-gutter-position 'bottom) | 22 bottom-gutter 'str |
23 (make-glyph | |
24 [layout :orientation vertical | |
25 :justify left :margin-width 4 | |
26 :items ([string :data "Fontifying glyphs.c..."] | |
27 [layout :orientation horizontal | |
28 :items | |
29 ([progress-gauge :value 0 :pixel-height 24 | |
30 :pixel-width 250 :descriptor | |
31 "Progress"] | |
32 [button :pixel-height 24 | |
33 :descriptor " Stop " | |
34 :callback (quote quit)])])])) | |
35 | |
36 (set-gutter-element bottom-gutter 'str2 str2) | |
37 (set-gutter-element-visible-p bottom-gutter-visible-p 'str t) | |
38 (set-gutter-element-visible-p bottom-gutter-visible-p 'str2 t) | |
39 |