See the formattedRect property and measureText function in the docs. Both should help you get what you want.
³Last² refers to the object type that is highest in the hierarchy: set the name of the last image to ³myImage" Also, the number of an object type will return the number of the highest layered object: put the number of images into N set the name of image N to ³myImage" Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 3/26/15, 11:28 PM, "Brahmanathaswami" <bra...@hindu.org> wrote: >I'm looking for a way to quickly turn words into graphic objects >programmatically. > >If you have a field with the words > >"I am that I am" > >you can programmatically select each word and highlight it etc. but I >don't think you can get the actual pixel location of the rect that the >hilite takes on the screen... which, theoretically should be doable, >since everything must be drawn on screen, everything has x,y coords and >width and height. > >Assuming the rect of a hilited word *could* be extracted, then it would >be easy to take a import a snap shot of it. > >an auxiliary question: when using "import snapshot" ... how can you set >the name of the resulting image that is placed on the top of the card. >It defaults to (e.g.) "image id 6578" but one cannot know that ID... is >there another way to refer to the latest created object? > >Swasti Astu, Be Well! >Brahmanathaswami > > > >_______________________________________________ >use-livecode mailing list >use-livecode@lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode