2000-11-19
2000-11-19 21:32:59 by Kenneth Johansson <kenneth.johansson.home@gmail.com>
-
70d078870213c9212a42085dba6fbaddfc291f29
(69 lines)
(+39/-30)
[
Show
| Annotate
]
Branch: 2.1
More markup changes
Rev: server/base_server/image_cache.xml:1.3
Rev: server/base_server/rxml.pike:1.262
Rev: server/modules/graphics/cimg.pike:1.35
Rev: server/modules/graphics/gbutton.pike:1.65
Rev: server/modules/graphics/graphic_text.pike:1.257
Rev: server/modules/ldap/ldaptag.pike:2.8
Rev: server/modules/scripting/piketag.pike:2.30
Rev: server/modules/tags/diremit.pike:1.7
Rev: server/modules/tags/rxmltags.pike:1.191
Rev: server/modules/tags/tablify.pike:1.61
1:
// This is a roxen module. Copyright © 1996 - 2000, Roxen IS.
//
- constant cvs_version="$Id: graphic_text.pike,v 1.256 2000/11/09 23:15:57 kuntri Exp $";
+ constant cvs_version="$Id: graphic_text.pike,v 1.257 2000/11/19 21:32:55 kuntri Exp $";
#include <module.h>
inherit "module";
51: Inside #if defined(manual)
Specifies the image to use as background.</p>
</attr>
+ <attr name='tile'><p>
+ Tiles the background and foreground images if they are smaller than
+ the actual image.</p>
+ </attr>
+
+ <attr name='mirrortile'><p>
+ Tiles the background and foreground images around x-axis and y-axis
+ for odd frames, creating seamless textures.</p>
+ </attr>
+
<attr name='bevel' value='width'><p>
Draws a bevel-box around the text.</p>
<ex type=vert>
150: Inside #if defined(manual)
</attr>
<attr name='format' value='string'><p>
- Set the image format, e.g. \"png\".
+ Set the image format, e.g. \"png\".</p>
</attr>
<attr name='fs'><p>
184: Inside #if defined(manual)
image, by default 300.</p>
</attr>
- <attr name='mirrortile'><p>
- Tiles the background and foreground images around x-axis and y-axis
- for odd frames, creating seamless textures.</p>
- </attr>
-
+
<attr name='move' value='x,y'><p>
Moves the text relative to the upper left corner of the background
image. This will not change the size of the image.</p>
</attr>
- <attr name='narrow>
+ <attr name='narrow><p>
Use a narroe version of the font, if available.</p>
</attr>
326: Inside #if defined(manual)
</ex>
</attr>
- <attr name='tile'><p>
- Tiles the background and foreground images if they are smaller than
- the actual image.</p>
- </attr>
-
+
<attr name='verbatim'><p>
Allows the gtext parser to not be typographically correct.</p>
</attr>
411:
"gh6":#"<desc cont='cont'></desc>
<noex>"+gtextargs+"</noex>",
- "gtext":#"<desc cont='cont''><p><short>
+ "gtext":#"<desc cont='cont'><p><short>
Creates graphical texts.</short> Renders a GIF image of the
contents.</p>
</desc>
420:
Sets the alt attribute of the generated <tag>img</tag> tag. By
default the alt attribute will be set to the contents of the
<tag>gtext</tag> tag.</p>
+
<ex type=vert>
<gtext fgcolor=\"blue\" alt=\"Hello!\">Welcome!</gtext>
</ex>
427:
<attr name='border' value='width,color'><p>
Draws a border around the text of the specified width and color.</p>
+
<ex type=vert>
<gtext fgcolor=\"blue\" border=\"2,red\">Red border</gtext>
</ex>
442:
Used together with the href attribute to generate a JavaScript that
will highlight the image when the mouse is moved over it. The message
is shown in the browser's status bar.</p>
+
<ex type=vert>
<gtext href=\"http://www.roxen.com\" magic=\"Roxen\">www.roxen.com</gtext>
</ex>
452:
highlighted image.</p>
<ex type=vert>
-
+
<gtext fgcolor=\"blue\" magic-glow=\"yellow\" magic=\"\">Magic attribute</gtext>
</ex>
</attr>
461:
Do not terminate the image tag with \"/\".</p>
</attr>
- <attr name='split'><p>
- <gtext scale='0.4' split='split'></p>
- Make each word into a separate gif image. Useful if you are writing a
- large text, and word wrap at the edges of the display is desired.
- This text is an example (try resisizing your browser window, the
- images should move just like normal text would).</gtext></p>
+ <attr name='split'>
+ <p>Make each word into a separate gif image. Useful if you are
+ writing a large text, and word wrap at the edges of the display is
+ desired. This text is an example (try resisizing your browser window,
+ the images should move just like normal text would).</p>
-
+ <ex type='vert'>
+ <gtext scale='0.4' split='split'>
+ Useful if you are writing a large text, and word wrap at the edges
+ of the display is desired. This text is an example (try resisizing
+ your browser window, the images should move just like normal text
+ would).
+ </gtext>
+ </ex>
+
<p>This will allow the browser to word-wrap the text, but will
- disable certain attributes like magic.</p>
+ disable certain attributes like <att>magic</att>.</p>
- <ex type=vert'><p>
+ <ex type='vert'>
<gtext scale=\"0.4\" split=\"\">Make each word..</gtext>
</ex>
</attr>
<attr name='submit'><p>
- Creates a submit-button for forms. Does not work together with split
- or magic arguments.</p>
- </attr>"
- +gtextargs,
+ Creates a submit-button for forms. Does not work together with
+ <att>split</att> or <att>magic</att> attributes.</p>
+ </attr>"+gtextargs,
"gtext-id":#"<desc tag='tag'><p><short>
496:
<attr name='short'><p></p>
- </attr>"
- +gtextargs,
+ </attr>"+gtextargs,
"gtext-url":#"<desc cont='cont'><p><short>