Textbox filled by default with some text
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 svgtextSample 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. Anyone knows how and where in the code to implement it? Other suggestions? Regards, Rutger. -- Rutger Nijlunsing --- Philips Medical Systems, Best, Building QV-160, Fax +31-402763816 O Phone +31-402762181,[EMAIL PROTECTED] ( \ --- MIMIT -- Advanced Development X
Re: Textbox filled by default with some text
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 svgtextSample 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