How to select a cell instead of a line in a table
-= JB =-
sundown at pacifier.com
Mon Jun 16 22:17:59 CDT 2008
That definitely helps me understand it better!
On Jun 16, 2008, at 8:10 PM, J. Landman Gay wrote:
> -= JB =- wrote:
>> Thanks for the info Jacque.
>> I am pretty new to Rev so I didn't know that.
>> Is it somehow faster than copying?
> I've never actually timed it but I imagine it would be, since
> you're avoiding the second, extra field access. But the main reason
> I do it that way is because it's just easier to get the info
> directly, without involving the clipboard layer abstraction. The
> other big plus is that it doesn't change the user's clipboard
> behind their back, so your customers don't hate you.
>> On Jun 16, 2008, at 7:37 PM, J. Landman Gay wrote:
>>> Kresten Bjerg wrote:
>>>> Been working several hours with the copy paste solution, but all
>>>> attempts to copy selectedchunk (or chunkinfo) to a selected field
>>>> (in order to retrieve the selectedtext (with
>>>> fontspecifications) from there, to a variable, for further
>>>> processing) fails.
>>>> The variable watcher reports e.g. on Put the clickchunk into
>>>> chunkInfo : "char 108 to 117 of field 363". But all attempts to
>>>> copy the thus indicated chunk gives an elaborate "it" (many
>>>> level adresses) different from the text in the cell. And nothing
>>>> gets pasted to the (visibly) selected field. It seems like the
>>>> whole table is copied instead.
>>>> Could you suggest the scriptlines, which could do the trick ?
>>> You can set the clipboard contents directly without actually
>>> copying or pasting, retrieving either plain text or styled text:
>>> set the clipboardData to the selection -- plain text, the default
>>> set the clipboarddata["html"] to the htmltext of the selection --
>>> styled text
>>> If all you need is the text and font specs, you can do it
>>> directly in a couple of lines:
>>> put the selection into myVar -- contains plain text
>>> put the effective textfont of the selection into myFont
>>> You can also get any other text properties. Usually there's no
>>> need to actually copy and paste, but I haven't been following
>>> this thread so I may have missed something.
>>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode