On Thu, 3 May 2001, Rutger Nijlunsing wrote:
> Hi all,
>
> I want to add several shapes with text already filled in in the
> shape, preferably non-edittable. I see several solutions to this:
>
> * Add a field 'text' to the textbox tag:
> <textbox x1="left" y1="top" x2="right" y2="bottom" text="Sample text"/>
> ...where "Sample text" is the default to initialise the text box
> with, when the shape is instantiated.
> * Add to the SVG parser a way to parse SVG's text fields like
> <svg><text>Sample text</text></svg>.
> * Convert the text to vector graphics, convert it to svg, and add
> those polylines to the shape file.
>
> I prefer the first one, since it sounds quite simple to do.
Yes. That would of course make an editable text field. Maybe a read-only
flag as well?
> Anyone knows how and where in the code to implement it?
The code you are looking for is in objects/custom/shape_info.c, line 893+.
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | H�rdgrim of Numenor
"I do not agree with a word that you say, but I | Retainer of Sir Kegg
will defend to the death your right to say it." | of Westfield
--Evelyn Beatrice Hall paraphrasing Voltaire | Chaos Berserker of Khorne